Revert "Change stylesheet path name for mobile browsers"

This commit is contained in:
Hypolite Petovan 2019-01-11 20:01:42 -05:00 committed by GitHub
parent 3020b9cb06
commit ffcd9fb78d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View 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';