X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fvier%2Fstyle.php;h=4dfbe4e268f1a837c1b1f2adc15c4ee09c454fcd;hb=34bc0b0c97b7ba4a29d217c33227906e2ced6a73;hp=d777864825a11cf98b2aeb1d692ab1567b44d7b4;hpb=241ed9a9cd3254db0afe63c78f2c367b6f8a7a05;p=friendica.git diff --git a/view/theme/vier/style.php b/view/theme/vier/style.php index d777864825..4dfbe4e268 100644 --- a/view/theme/vier/style.php +++ b/view/theme/vier/style.php @@ -2,11 +2,12 @@ /** * @file view/theme/vier/style.php */ +use Friendica\Core\Logger; use Friendica\Core\Config; use Friendica\Core\PConfig; use Friendica\Model\Profile; -$uid = Profile::getThemeUid(); +$uid = defaults($_REQUEST, 'puid', 0); $style = PConfig::get($uid, 'vier', 'style'); @@ -30,8 +31,8 @@ foreach (['style', $style] as $file) { $modified = $stylemodified; } } else { - //TODO: use LOGGER_ERROR? - logger('Error: missing file: "' . $stylecssfile .'" (userid: '. $uid .')'); + //TODO: use Logger::ERROR? + Logger::log('Error: missing file: "' . $stylecssfile .'" (userid: '. $uid .')'); } } $modified = gmdate('r', $modified);