vfremaux / moodle-local_vflibs Goto Github PK
View Code? Open in Web Editor NEWComplementary libraries for all VF serie plugins
Complementary libraries for all VF serie plugins
Hello, we wanted to use this plugin, but found some included libraries in old versions. Some of them have newer versions with security updates. The libraries are listed below:
We want also to report one files structure issue below:
local/vflibs/timelinelib.php lines 153, 157,161 - uses mkdir($CFG->dataroot.'/'.$COURSE->id.'/...', 0777). It should make temporary folders in $CFG->dataroot.'/temp' since Moodle 2.0: https://docs.moodle.org/21/en/Creating_Moodle_site_data_directory/Data_directory
Trying to install in the latest Moodle 3.11.3 complains that
Incorrect syntax in plugin supported declaration in vflibs
Looking at Moodle source code, the $plugin->supported
in version.php
must really be 2 integers. Moodle checks it (in lib/classes/plugininfo/base.php
) like this:
if (isset($plugin->supported)) {
// Checks for structure of supported.
$isint = (is_int($plugin->supported[0]) && is_int($plugin->supported[1]));
$isrange = ($plugin->supported[0] <= $plugin->supported[1] && count($plugin->supported) == 2);
if (is_array($plugin->supported) && $isint && $isrange) {
$this->pluginsupported = $plugin->supported;
} else {
throw new coding_exception('Incorrect syntax in plugin supported declaration in '."$this->name");
}
}
Fix seems to be just to update version.php
from
$plugin->supported = [38];
->
$plugin->supported = [38, 38];
When install this plugin in our moodle site (3.8.1+ Build: 20200221), the system return the message as below:
Validating local_vflibs ... Error
[Error] Required Moodle version [2019112200]
Installation aborted due to validation failure
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.