Revert "Change stylesheet path name for mobile browsers"
This commit is contained in:
parent
3020b9cb06
commit
ffcd9fb78d
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
namespace Friendica\Core;
|
namespace Friendica\Core;
|
||||||
|
|
||||||
use Friendica\BaseObject;
|
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
|
|
||||||
|
@ -192,17 +191,12 @@ class Theme
|
||||||
*/
|
*/
|
||||||
public static function getStylesheetPath($theme)
|
public static function getStylesheetPath($theme)
|
||||||
{
|
{
|
||||||
$a = BaseObject::getApp();
|
$a = get_app();
|
||||||
|
|
||||||
$opts = (($a->profile_uid) ? '?f=&puid=' . $a->profile_uid : '');
|
$opts = (($a->profile_uid) ? '?f=&puid=' . $a->profile_uid : '');
|
||||||
if (file_exists('view/theme/' . $theme . '/style.php')) {
|
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';
|
return 'view/theme/' . $theme . '/style.css';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue