MDL-16433 themes and javascript files are not blocked by running upgrade anymore

This commit is contained in:
skodak
2008-09-14 08:40:23 +00:00
parent 8429163db9
commit a78bee285d
19 changed files with 107 additions and 63 deletions
+1
View File
@@ -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
View File
@@ -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 {
+3 -1
View File
@@ -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);
+4 -2
View File
@@ -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);
+4 -2
View File
@@ -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);
+4 -2
View File
@@ -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);
+4 -2
View File
@@ -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);
+5 -3
View File
@@ -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);
+8 -5
View File
@@ -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);
?>
+4 -2
View File
@@ -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);
+8 -5
View File
@@ -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);
?>
+8 -5
View File
@@ -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);
?>
+4 -2
View File
@@ -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);
+8 -5
View File
@@ -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);
?>
+8 -5
View File
@@ -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);
?>
+8 -5
View File
@@ -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);
?>
+8 -5
View File
@@ -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);
?>
+8 -5
View File
@@ -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);
?>
+8 -5
View File
@@ -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);
?>