mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:10:12 +00:00
Replace calls for App:::getThemeInfoValue() with AppHelper
This commit is contained in:
parent
536234a9c6
commit
7de79fc753
4 changed files with 20 additions and 19 deletions
|
@ -3347,7 +3347,7 @@ class Item
|
|||
*/
|
||||
public static function prepareBody(array &$item, bool $attach = false, bool $is_preview = false, bool $only_cache = false): string
|
||||
{
|
||||
$a = DI::app();
|
||||
$appHelper = DI::apphelper();
|
||||
$uid = DI::userSession()->getLocalUserId();
|
||||
Hook::callAll('prepare_body_init', $item);
|
||||
|
||||
|
@ -3517,8 +3517,8 @@ class Item
|
|||
}
|
||||
|
||||
// Replace friendica image url size with theme preference.
|
||||
if (!empty($a->getThemeInfoValue('item_image_size'))) {
|
||||
$ps = $a->getThemeInfoValue('item_image_size');
|
||||
if (!empty($appHelper->getThemeInfoValue('item_image_size'))) {
|
||||
$ps = $appHelper->getThemeInfoValue('item_image_size');
|
||||
$s = preg_replace('|(<img[^>]+src="[^"]+/photo/[0-9a-f]+)-[0-9]|', "$1-" . $ps, $s);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue