kill $coreStyles and $coreScripts

This commit is contained in:
Thomas Müller 2014-02-20 14:18:01 +01:00
parent 01929096fe
commit fbea02bebb
3 changed files with 0 additions and 17 deletions

View File

@ -284,10 +284,6 @@ class OC {
if (self::needUpgrade()) { if (self::needUpgrade()) {
if ($showTemplate && !OC_Config::getValue('maintenance', false)) { if ($showTemplate && !OC_Config::getValue('maintenance', false)) {
OC_Config::setValue('theme', ''); OC_Config::setValue('theme', '');
// $minimizerCSS = new OC_Minimizer_CSS();
// $minimizerCSS->clearCache();
// $minimizerJS = new OC_Minimizer_JS();
// $minimizerJS->clearCache();
OC_Util::addScript('config'); // needed for web root OC_Util::addScript('config'); // needed for web root
OC_Util::addScript('update'); OC_Util::addScript('update');
$tmpl = new OC_Template('', 'update.admin', 'guest'); $tmpl = new OC_Template('', 'update.admin', 'guest');

View File

@ -69,17 +69,6 @@ class OC_App{
} }
ob_end_clean(); ob_end_clean();
if (!defined('DEBUG') || !DEBUG) {
if (is_null($types)
&& empty(OC_Util::$coreScripts)
&& empty(OC_Util::$coreStyles)) {
OC_Util::$coreScripts = OC_Util::$scripts;
OC_Util::$scripts = array();
OC_Util::$coreStyles = OC_Util::$styles;
OC_Util::$styles = array();
}
}
// return
return true; return true;
} }

View File

@ -11,8 +11,6 @@ class OC_Util {
public static $headers=array(); public static $headers=array();
private static $rootMounted=false; private static $rootMounted=false;
private static $fsSetup=false; private static $fsSetup=false;
public static $coreStyles=array();
public static $coreScripts=array();
/** /**
* @brief Can be set up * @brief Can be set up