diff options
author | Individual IT Services <info@individual-it.net> | 2015-09-25 15:41:55 +0545 |
---|---|---|
committer | Individual IT Services <info@individual-it.net> | 2015-09-25 15:41:55 +0545 |
commit | 2e42f99d007f9897cb6a7d017dce91bd8b1a6546 (patch) | |
tree | ed84a3e23d75940e0b97347bda738182b12b93b9 /lib/private/template.php | |
parent | 5a11e145da68cb5df781060c76c5bdca27228e40 (diff) | |
download | nextcloud-server-2e42f99d007f9897cb6a7d017dce91bd8b1a6546.tar.gz nextcloud-server-2e42f99d007f9897cb6a7d017dce91bd8b1a6546.zip |
add $prepend option to addStyle() & addVendorStyle()
Diffstat (limited to 'lib/private/template.php')
-rw-r--r-- | lib/private/template.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/private/template.php b/lib/private/template.php index 60ff49a5b3e..0300e43edea 100644 --- a/lib/private/template.php +++ b/lib/private/template.php @@ -92,26 +92,26 @@ class OC_Template extends \OC\Template\Base { public static function initTemplateEngine() { if (self::$initTemplateEngineFirstRun){ - //apps that started before the template initialization can load their own scripts - //so to make sure this scripts here are loaded first we use OC_Util::addScript() with $prepend=true - //meaning the last scripts in this list will be loaded first + //apps that started before the template initialization can load their own scripts/styles + //so to make sure this scripts/styles here are loaded first we use OC_Util::addScript() with $prepend=true + //meaning the last script/style in this list will be loaded first if (\OC::$server->getSystemConfig ()->getValue ( 'installed', false ) && ! \OCP\Util::needUpgrade ()) { if (\OC::$server->getConfig ()->getAppValue ( 'core', 'backgroundjobs_mode', 'ajax' ) == 'ajax') { OC_Util::addScript ( 'backgroundjobs', null, true ); } } - OC_Util::addStyle("styles"); - OC_Util::addStyle("header"); - OC_Util::addStyle("mobile"); - OC_Util::addStyle("icons"); - OC_Util::addStyle("fonts"); - OC_Util::addStyle("apps"); - OC_Util::addStyle("fixes"); - OC_Util::addStyle("multiselect"); - OC_Util::addVendorStyle('jquery-ui/themes/base/jquery-ui'); - OC_Util::addStyle('jquery-ui-fixes'); - OC_Util::addStyle("tooltip"); + OC_Util::addStyle("tooltip",null,true); + OC_Util::addStyle('jquery-ui-fixes',null,true); + OC_Util::addVendorStyle('jquery-ui/themes/base/jquery-ui',null,true); + OC_Util::addStyle("multiselect",null,true); + OC_Util::addStyle("fixes",null,true); + OC_Util::addStyle("apps",null,true); + OC_Util::addStyle("fonts",null,true); + OC_Util::addStyle("icons",null,true); + OC_Util::addStyle("mobile",null,true); + OC_Util::addStyle("header",null,true); + OC_Util::addStyle("styles",null,true); // avatars if (\OC::$server->getSystemConfig()->getValue('enable_avatars', true) === true) { |