mirror of
https://github.com/friendica/friendica
synced 2025-04-29 03:04:22 +02:00
Getter/Setter for theme info
This commit is contained in:
parent
c52b8595e8
commit
5a87ccf026
13 changed files with 57 additions and 28 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue