From ffcd9fb78d7e43ecefeef6cc9ce52cc834565591 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 11 Jan 2019 20:01:42 -0500 Subject: [PATCH] Revert "Change stylesheet path name for mobile browsers" --- src/Core/Theme.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Core/Theme.php b/src/Core/Theme.php index 1ea39d606c..91511b4d5f 100644 --- a/src/Core/Theme.php +++ b/src/Core/Theme.php @@ -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';