]> git.mxchange.org Git - friendica.git/commitdiff
Hotfix for App->registerStylesheet
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 31 Mar 2019 10:00:20 +0000 (06:00 -0400)
committerGitHub <noreply@github.com>
Sun, 31 Mar 2019 10:00:20 +0000 (06:00 -0400)
- Wrong condition for strpos()
- Follow-up to #6953

src/App.php

index 8f512894c33e1b09c97ed6359dd12ec0594df8ef..f4fb3fa3d99f510a3c8c2b76266d278b340bbbf2 100644 (file)
@@ -182,8 +182,8 @@ class App
         */
        public function registerStylesheet($path)
        {
-               if (mb_strpos($path, $this->getBasePath() . DIRECTORY_SEPARATOR) == 0) {
-                               $path = mb_substr($path, mb_strlen($this->getBasePath() . DIRECTORY_SEPARATOR));
+               if (mb_strpos($path, $this->getBasePath() . DIRECTORY_SEPARATOR) === 0) {
+                       $path = mb_substr($path, mb_strlen($this->getBasePath() . DIRECTORY_SEPARATOR));
                }
 
                $this->stylesheets[] = trim($path, '/');