|
|
|
@ -322,7 +322,6 @@ class Article extends Handler_Protected {
|
|
|
|
|
$hide_images = false) {
|
|
|
|
|
|
|
|
|
|
$enclosures = self::_get_enclosures($id);
|
|
|
|
|
$rv = [];
|
|
|
|
|
$enclosures_formatted = "";
|
|
|
|
|
|
|
|
|
|
/*foreach ($enclosures as &$enc) {
|
|
|
|
@ -348,10 +347,16 @@ class Article extends Handler_Protected {
|
|
|
|
|
$enclosures_formatted, $enclosures, $id, $always_display_enclosures, $article_content, $hide_images);
|
|
|
|
|
|
|
|
|
|
if (!empty($enclosures_formatted)) {
|
|
|
|
|
$rv['formatted'] = $enclosures_formatted;
|
|
|
|
|
return $rv;
|
|
|
|
|
return [
|
|
|
|
|
'formatted' => $enclosures_formatted,
|
|
|
|
|
'entries' => []
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$rv = [
|
|
|
|
|
'entries' => []
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
$rv['can_inline'] = isset($_SESSION["uid"]) &&
|
|
|
|
|
empty($_SESSION["bw_limit"]) &&
|
|
|
|
|
!get_pref("STRIP_IMAGES") &&
|
|
|
|
@ -359,8 +364,6 @@ class Article extends Handler_Protected {
|
|
|
|
|
|
|
|
|
|
$rv['inline_text_only'] = $hide_images && $rv['can_inline'];
|
|
|
|
|
|
|
|
|
|
$rv['entries'] = [];
|
|
|
|
|
|
|
|
|
|
foreach ($enclosures as $enc) {
|
|
|
|
|
|
|
|
|
|
// this is highly approximate
|
|
|
|
|