]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #6427 from friendica/revert-6380-bug/5148-get-cookies-from-safari
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 12 Jan 2019 01:42:55 +0000 (20:42 -0500)
committerGitHub <noreply@github.com>
Sat, 12 Jan 2019 01:42:55 +0000 (20:42 -0500)
Revert "Change stylesheet path name for mobile browsers"

src/Core/Theme.php

index 1ea39d606c763556a8ab94934e5b98e61e217801..91511b4d5fbc91790430c43169c387936a396fa5 100644 (file)
@@ -6,7 +6,6 @@
 
 namespace Friendica\Core;
 
-use Friendica\BaseObject;
 use Friendica\Core\Logger;
 use Friendica\Core\System;
 
@@ -192,16 +191,11 @@ class Theme
         */
        public static function getStylesheetPath($theme)
        {
-               $a = BaseObject::getApp();
+               $a = get_app();
 
                $opts = (($a->profile_uid) ? '?f=&puid=' . $a->profile_uid : '');
                if (file_exists('view/theme/' . $theme . '/style.php')) {
-                       if ($a->is_mobile) {
-                               // Workaround for iOS Safari not sending the cookie for static files
-                               return 'view/theme/' . $theme . '/style' . $opts;
-                       } else {
-                               return 'view/theme/' . $theme . '/style.pcss' . $opts;
-                       }
+                       return 'view/theme/' . $theme . '/style.pcss' . $opts;
                }
 
                return 'view/theme/' . $theme . '/style.css';