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

Take 2 on last

Chris Pollett [2024-03-09 02:Mar:th]
Take 2 on last
Filename
src/controllers/components/SocialComponent.php
diff --git a/src/controllers/components/SocialComponent.php b/src/controllers/components/SocialComponent.php
index 641af3b7e..fc78ee03e 100644
--- a/src/controllers/components/SocialComponent.php
+++ b/src/controllers/components/SocialComponent.php
@@ -4518,8 +4518,8 @@ EOD;
                 "file_name");
             $name_parts = pathinfo($file_name);
             if (!empty($name_parts['extension']) &&
-                in_array($name_parts['extension'], ['csv', 'txt',
-                    'tex', 'php', 'sql', 'html', 'java', 'py',
+                in_array($name_parts['extension'], ['csv', 'css', 'txt',
+                    'tex', 'php', 'sql', 'html', 'java', 'js', 'py',
                     'pl', 'P', 'srt'])) {
                 $extension = $name_parts['extension'];
                 $data['RAW'] = !empty($_REQUEST['download']);
@@ -4912,7 +4912,8 @@ EOD;
         }
     }
     /**
-     *
+     * Used to set -up infor for drawing the mediaWikiDetail of a media
+     * resource page
      *
      * @param array &$data array of field variables for view will be modified
      *  by this function
ViewGit