summaryrefslogtreecommitdiff
path: root/classes/Article.php
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2024-11-17 22:14:08 +0000
committerwn_ <invalid@email.com>2024-11-18 21:59:45 +0000
commit154abc61a0f81bee7757fc57e594f3f4bccc0fdf (patch)
tree19deb331e4204003b11b88cc2f1e98cc2440b402 /classes/Article.php
parent394d606fe977a331f733c62e5509469c2eb3ef31 (diff)
Eliminate use of deprecated 'get_pref()' and 'set_pref()'.
Diffstat (limited to 'classes/Article.php')
-rw-r--r--classes/Article.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Article.php b/classes/Article.php
index 550e42842..2bc647e48 100644
--- a/classes/Article.php
+++ b/classes/Article.php
@@ -337,7 +337,7 @@ class Article extends Handler_Protected {
$rv['can_inline'] = isset($_SESSION["uid"]) &&
empty($_SESSION["bw_limit"]) &&
- !get_pref(Prefs::STRIP_IMAGES) &&
+ !Prefs::get(Prefs::STRIP_IMAGES, $_SESSION["uid"], $_SESSION["profile"] ?? null) &&
($always_display_enclosures || !preg_match("/<img/i", $article_content));
$rv['inline_text_only'] = $hide_images && $rv['can_inline'];