diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-12-07 23:16:06 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-12-07 23:55:32 +0100 |
commit | 4bcaeb6c2cd0e9c5bb87995aac8df849bedd0b70 (patch) | |
tree | cc0d3bac06512581e98940f40ecdb7a802b7cd41 /lib/private/Template | |
parent | f0a0bfaaeef447157801f116e90435114b271572 (diff) | |
download | nextcloud-server-4bcaeb6c2cd0e9c5bb87995aac8df849bedd0b70.tar.gz nextcloud-server-4bcaeb6c2cd0e9c5bb87995aac8df849bedd0b70.zip |
Drop 3rdparty root since it is unused and adjust tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Template')
-rw-r--r-- | lib/private/Template/CSSResourceLocator.php | 3 | ||||
-rw-r--r-- | lib/private/Template/JSResourceLocator.php | 4 | ||||
-rwxr-xr-x | lib/private/Template/ResourceLocator.php | 4 |
3 files changed, 2 insertions, 9 deletions
diff --git a/lib/private/Template/CSSResourceLocator.php b/lib/private/Template/CSSResourceLocator.php index beb5178476b..5047b3e906f 100644 --- a/lib/private/Template/CSSResourceLocator.php +++ b/lib/private/Template/CSSResourceLocator.php @@ -44,8 +44,7 @@ class CSSResourceLocator extends ResourceLocator { public function doFind($style) { $app = substr($style, 0, strpos($style, '/')); if (strpos($style, '3rdparty') === 0 - && $this->appendIfExist($this->thirdpartyroot, $style.'.css') - || $this->appendIfExist($this->serverroot, $style.'.css') + && $this->appendIfExist($this->serverroot, $style.'.css') || $this->appendIfExist($this->serverroot, 'core/'.$style.'.css') ) { return; diff --git a/lib/private/Template/JSResourceLocator.php b/lib/private/Template/JSResourceLocator.php index 00cfde1f9f5..88323af75de 100644 --- a/lib/private/Template/JSResourceLocator.php +++ b/lib/private/Template/JSResourceLocator.php @@ -45,10 +45,6 @@ class JSResourceLocator extends ResourceLocator { */ public function doFind($script) { $theme_dir = 'themes/'.$this->theme.'/'; - if (strpos($script, '3rdparty') === 0 - && $this->appendIfExist($this->thirdpartyroot, $script.'.js')) { - return; - } // Extracting the appId and the script file name $app = substr($script, 0, strpos($script, '/')); diff --git a/lib/private/Template/ResourceLocator.php b/lib/private/Template/ResourceLocator.php index dec74ed1ab8..9e6e2056e6b 100755 --- a/lib/private/Template/ResourceLocator.php +++ b/lib/private/Template/ResourceLocator.php @@ -36,7 +36,6 @@ abstract class ResourceLocator { protected $mapping; protected $serverroot; - protected $thirdpartyroot; protected $webroot; protected $resources = []; @@ -49,8 +48,7 @@ abstract class ResourceLocator { \OC::$SERVERROOT => \OC::$WEBROOT ]; $this->serverroot = \OC::$SERVERROOT; - $this->thirdpartyroot = \OC::$SERVERROOT; - $this->webroot = $this->mapping[$this->serverroot]; + $this->webroot = \OC::$WEBROOT; $this->theme = \OC_Util::getTheme(); } |