mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-52777 tool_usertours: Stop testing pending upgrades
This commit is contained in:
parent
aea13e1c26
commit
31c3b7a2e1
@ -561,11 +561,6 @@ class manager {
|
||||
public static function get_matching_tours(\moodle_url $pageurl) {
|
||||
global $DB, $PAGE;
|
||||
|
||||
if (self::tour_upgrade_pending()) {
|
||||
// Do not show tours whilst upgrades are pending agains the plugin.
|
||||
return null;
|
||||
}
|
||||
|
||||
$sql = <<<EOF
|
||||
SELECT * FROM {tool_usertours_tours}
|
||||
WHERE enabled = 1
|
||||
@ -587,21 +582,6 @@ EOF;
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the tour plugin is pending an upgrade.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function tour_upgrade_pending() {
|
||||
$plugin = new \stdClass();
|
||||
include(dirname(__DIR__) . '/version.php');
|
||||
|
||||
$manager = \core_plugin_manager::instance();
|
||||
$plugininfo = $manager->get_plugin_info('tool_usertours');
|
||||
|
||||
return ($plugin->version != $plugininfo->versiondb);
|
||||
}
|
||||
|
||||
/**
|
||||
* Import the provided tour JSON.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user