]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16433 themes and javascript files are not blocked by running upgrade anymore
authorskodak <skodak>
Sun, 14 Sep 2008 08:40:23 +0000 (08:40 +0000)
committerskodak <skodak>
Sun, 14 Sep 2008 08:40:23 +0000 (08:40 +0000)
19 files changed:
lib/javascript-mod.php
lib/setup.php
theme/chameleon/styles.php
theme/colors/styles.php
theme/cornflower/styles.php
theme/custom_corners/styles.php
theme/formal_white/styles.php
theme/lines/styles.php
theme/metal/styles.php
theme/oceanblue/styles.php
theme/orangewhite/styles.php
theme/orangewhitepda/styles.php
theme/standard/styles.php
theme/standardblue/styles.php
theme/standardgreen/styles.php
theme/standardlogo/styles.php
theme/standardred/styles.php
theme/standardwhite/styles.php
theme/wood/styles.php

index 22dc0cb4b39a580a6b93ef189f3a4c3edbcf87ba..b48e39d75237c4631bb070aa13c742fadc942931 100644 (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');
 
index f408b0de9fc64fb411e66f5cdd989f9e9da74462..7fe9f98d903ccd82d80ac7c7ae2a9e2d8188efe8 100644 (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 {
index 097d3afe22c7d2e7b9f17c5ff75ff8e86078cbf0..648a960e2d107413af4cb587d608345566001f38 100644 (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);
    
index fd3271b72d4f42bc092a0d27312afb07d160f2f5..648a960e2d107413af4cb587d608345566001f38 100755 (executable)
@@ -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);
    
index 61ff453952e1be41f445ba65de95f6d00abe6902..19b0cc0489c793b3c9bc8d08ffea782dfd62441c 100644 (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);
    
index b4e33844d7de427b457f93aea2526858139e2b32..ef50a2e2150cf41b92270473e89f6575a203c3ed 100644 (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);
    
index 097d3afe22c7d2e7b9f17c5ff75ff8e86078cbf0..37a910bc9dda6586c98270b26b264fc8e43d2de4 100644 (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);
    
index fd3271b72d4f42bc092a0d27312afb07d160f2f5..37a910bc9dda6586c98270b26b264fc8e43d2de4 100755 (executable)
@@ -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);
    
index e80d7414854ff6071bb267449af8b12403b32c51..37a910bc9dda6586c98270b26b264fc8e43d2de4 100644 (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
+    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);
+    style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
    
 ?>
index 097d3afe22c7d2e7b9f17c5ff75ff8e86078cbf0..37a910bc9dda6586c98270b26b264fc8e43d2de4 100644 (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);
    
index 61ff453952e1be41f445ba65de95f6d00abe6902..37a910bc9dda6586c98270b26b264fc8e43d2de4 100644 (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
+    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);
+    style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
    
 ?>
index 61ff453952e1be41f445ba65de95f6d00abe6902..37a910bc9dda6586c98270b26b264fc8e43d2de4 100644 (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
+    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);
+    style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
    
 ?>
index 097d3afe22c7d2e7b9f17c5ff75ff8e86078cbf0..37a910bc9dda6586c98270b26b264fc8e43d2de4 100644 (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);
    
index e80d7414854ff6071bb267449af8b12403b32c51..37a910bc9dda6586c98270b26b264fc8e43d2de4 100644 (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
+    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);
+    style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
    
 ?>
index e80d7414854ff6071bb267449af8b12403b32c51..37a910bc9dda6586c98270b26b264fc8e43d2de4 100644 (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
+    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);
+    style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
    
 ?>
index e80d7414854ff6071bb267449af8b12403b32c51..37a910bc9dda6586c98270b26b264fc8e43d2de4 100644 (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
+    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);
+    style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
    
 ?>
index e80d7414854ff6071bb267449af8b12403b32c51..37a910bc9dda6586c98270b26b264fc8e43d2de4 100644 (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
+    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);
+    style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
    
 ?>
index e80d7414854ff6071bb267449af8b12403b32c51..37a910bc9dda6586c98270b26b264fc8e43d2de4 100644 (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
+    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);
+    style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
    
 ?>
index e80d7414854ff6071bb267449af8b12403b32c51..37a910bc9dda6586c98270b26b264fc8e43d2de4 100644 (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
+    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);
+    style_sheet_setup(time(), $lifetime, $themename, $forceconfig, $lang);
    
 ?>