. /** * Logging support. * * @package tool_log * @copyright 2014 Petr Skoda {@link http://skodak.org} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); /** * Upgrade the plugin. * * @param int $oldversion * @return bool always true */ function xmldb_tool_log_upgrade($oldversion) { global $CFG, $DB, $OUTPUT; $dbman = $DB->get_manager(); if ($oldversion < 2014040600) { // Reset logging defaults in dev branches, // in production upgrade the install.php is executed instead. require_once(__DIR__ . '/install.php'); xmldb_tool_log_install(); upgrade_plugin_savepoint(true, 2014040600, 'tool', 'log'); } // Moodle v2.7.0 release upgrade line. // Put any upgrade step following this. // Moodle v2.8.0 release upgrade line. // Put any upgrade step following this. // Moodle v2.9.0 release upgrade line. // Put any upgrade step following this. // Moodle v3.0.0 release upgrade line. // Put any upgrade step following this. return true; }