Skip to content
Snippets Groups Projects
Commit 2314067e authored by Bart Visscher's avatar Bart Visscher
Browse files

Merge pull request #3019 from owncloud/fix-3004

Test if we want a 3rdparty style/script before checking the 3rdparty root
parents c7a17efc e1c5b31d
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,8 @@ class OC_TemplateLayout extends OC_Template { ...@@ -111,7 +111,8 @@ class OC_TemplateLayout extends OC_Template {
$files = array(); $files = array();
foreach($styles as $style) { foreach($styles as $style) {
// is it in 3rdparty? // is it in 3rdparty?
if(self::appendIfExist($files, OC::$THIRDPARTYROOT, OC::$THIRDPARTYWEBROOT, $style.'.css')) { if(strpos($style, '3rdparty') === 0 &&
self::appendIfExist($files, OC::$THIRDPARTYROOT, OC::$THIRDPARTYWEBROOT, $style.'.css')) {
// or in the owncloud root? // or in the owncloud root?
}elseif(self::appendIfExist($files, OC::$SERVERROOT, OC::$WEBROOT, "$style$fext.css" )) { }elseif(self::appendIfExist($files, OC::$SERVERROOT, OC::$WEBROOT, "$style$fext.css" )) {
...@@ -169,7 +170,8 @@ class OC_TemplateLayout extends OC_Template { ...@@ -169,7 +170,8 @@ class OC_TemplateLayout extends OC_Template {
$files = array(); $files = array();
foreach($scripts as $script) { foreach($scripts as $script) {
// Is it in 3rd party? // Is it in 3rd party?
if(self::appendIfExist($files, OC::$THIRDPARTYROOT, OC::$THIRDPARTYWEBROOT, $script.'.js')) { if(strpos($script, '3rdparty') === 0 &&
self::appendIfExist($files, OC::$THIRDPARTYROOT, OC::$THIRDPARTYWEBROOT, $script.'.js')) {
// Is it in apps and overwritten by the theme? // Is it in apps and overwritten by the theme?
}elseif(self::appendIfExist($files, OC::$SERVERROOT, OC::$WEBROOT, "themes/$theme/apps/$script$fext.js" )) { }elseif(self::appendIfExist($files, OC::$SERVERROOT, OC::$WEBROOT, "themes/$theme/apps/$script$fext.js" )) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment