Getter/Setter for theme info

This commit is contained in:
Michael 2021-07-25 19:39:10 +00:00
parent c52b8595e8
commit 5a87ccf026
13 changed files with 57 additions and 28 deletions

View file

@ -2802,8 +2802,8 @@ class Item
}
// Replace friendica image url size with theme preference.
if (!empty($a->theme_info['item_image_size'])) {
$ps = $a->theme_info['item_image_size'];
if (!empty($a->getThemeInfoValue('item_image_size'))) {
$ps = $a->getThemeInfoValue('item_image_size');
$s = preg_replace('|(<img[^>]+src="[^"]+/photo/[0-9a-f]+)-[0-9]|', "$1-" . $ps, $s);
}