mirror of
https://github.com/friendica/friendica
synced 2024-11-19 01:03:40 +00:00
Merge pull request #6427 from friendica/revert-6380-bug/5148-get-cookies-from-safari
Revert "Change stylesheet path name for mobile browsers"
This commit is contained in:
commit
fbf73ef3a7
1 changed files with 2 additions and 8 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue