summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-12-28 14:19:13 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-01-03 22:05:03 +0100
commit1ae126a78155c297f156f8459142e815a23bbe35 (patch)
tree6e1b50da654b0a6c1e1da9dcff2f6f51704f8a8b /lib
parent9fa49c7f24a591567c1d829e53796b32e6268f13 (diff)
downloadnextcloud-server-1ae126a78155c297f156f8459142e815a23bbe35.tar.gz
nextcloud-server-1ae126a78155c297f156f8459142e815a23bbe35.zip
Fixed tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Template/SCSSCacher.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php
index 5b904bced65..542ca1688f5 100644
--- a/lib/private/Template/SCSSCacher.php
+++ b/lib/private/Template/SCSSCacher.php
@@ -319,7 +319,7 @@ class SCSSCacher {
*/
private function getWebDir($path, $appName, $serverRoot, $webRoot) {
// Detect if path is within server root AND if path is within an app path
- if ( !strpos($path, $serverRoot) && $appWebPath = \OC_App::getAppWebPath($appName) ) {
+ if ( strpos($path, $serverRoot) === false && $appWebPath = \OC_App::getAppWebPath($appName)) {
// Get the file path within the app directory
$appDirectoryPath = explode($appName, $path)[1];
// Remove the webroot