MDL-16433 themes and javascript files are not blocked by running upgrade anymore
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
/// that should be called on every page
|
||||
|
||||
define('NO_MOODLE_COOKIES', true);
|
||||
define('NO_UPGRADE_CHECK', true);
|
||||
|
||||
include('../config.php');
|
||||
|
||||
|
||||
+2
-2
@@ -160,8 +160,8 @@ global $HTTPSPAGEREQUIRED;
|
||||
/// Load up any configuration from the config table
|
||||
$CFG = get_config();
|
||||
|
||||
/// Verify upgrade is not running
|
||||
if (isset($CFG->upgraderunning)) {
|
||||
/// Verify upgrade is not running unless we are in a script that needs to execute in any case
|
||||
if (!defined('NO_UPGRADE_CHECK') and isset($CFG->upgraderunning)) {
|
||||
if ($CFG->upgraderunning < time()) {
|
||||
unset_config('upgraderunning');
|
||||
} else {
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 600; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 600; // Seconds to cache this stylesheet
|
||||
$nomoodlecookie = true; // Cookies prevent caching, so don't use them
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
|
||||
@@ -7,11 +7,13 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 600; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
|
||||
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 600; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 600; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 600; // Seconds to cache this stylesheet
|
||||
$nomoodlecookie = true; // Cookies prevent caching, so don't use them
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
|
||||
@@ -7,12 +7,15 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
?>
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 600; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
|
||||
@@ -7,12 +7,15 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 600; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
?>
|
||||
|
||||
@@ -7,12 +7,15 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 600; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
?>
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 600; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
|
||||
@@ -7,12 +7,15 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
?>
|
||||
|
||||
@@ -7,12 +7,15 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
?>
|
||||
|
||||
@@ -7,12 +7,15 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
?>
|
||||
|
||||
@@ -7,12 +7,15 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
?>
|
||||
|
||||
@@ -7,12 +7,15 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
?>
|
||||
|
||||
@@ -7,12 +7,15 @@
|
||||
/// THERE SHOULD BE NO NEED TO MODIFY THIS FILE!! USE CONFIG.PHP INSTEAD.
|
||||
|
||||
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
define('NO_MOODLE_COOKIES', true); // session not used here
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
define('NO_UPGRADE_CHECK', true); // ignore upgrade check
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig);
|
||||
require_once("../../config.php"); // Load up the Moodle libraries
|
||||
$themename = basename(dirname(__FILE__)); // Name of the folder we are in
|
||||
$forceconfig = optional_param('forceconfig', '', PARAM_FILE); // Get config from this theme
|
||||
$lang = optional_param('lang', '', PARAM_FILE); // Look for styles in this language
|
||||
$lifetime = 1800; // Seconds to cache this stylesheet
|
||||
|
||||
style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user