viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

Remove default footer from wiki media items when displayed

Chris Pollett [2024-06-25 07:Jun:th]
Remove default footer from wiki media items when displayed
Filename
src/controllers/components/SocialComponent.php
diff --git a/src/controllers/components/SocialComponent.php b/src/controllers/components/SocialComponent.php
index d18feb8bd..2a50a7c87 100644
--- a/src/controllers/components/SocialComponent.php
+++ b/src/controllers/components/SocialComponent.php
@@ -5080,7 +5080,8 @@ EOD;
         $file_name = $name_parts['filename'];
         $data['MEDIA_NAME'] = $media_name;
         $view = $parent->view($data['VIEW']);
-        $page_string = "";
+        $page_string = WikiParser::makeWikiPageHead(
+            ["page_type" => "media_item"]) . WikiParser::END_HEAD_VARS;
         $data['URL_PREFIX'] = $url_prefix;
         if (!empty($prev_name)) {
             $data['PREV_LINK'] = "$url_prefix&n=" . urlencode($prev_name);
ViewGit