Followup 1cf5a6e: use $wgResourceBasePath to refer to resources/assets, not $wgScriptPath
[lhc/web/wiklou.git] / includes / filerepo / file / File.php
index 11a3e5c..b574c5e 100644 (file)
@@ -1328,9 +1328,9 @@ abstract class File {
         * @return ThumbnailImage
         */
        function iconThumb() {
-               global $wgScriptPath, $IP;
-               $assetsPath = "$wgScriptPath/assets/file-type-icons/";
-               $assetsDirectory = "$IP/assets/file-type-icons/";
+               global $wgResourceBasePath, $IP;
+               $assetsPath = "$wgResourceBasePath/resources/assets/file-type-icons/";
+               $assetsDirectory = "$IP/resources/assets/file-type-icons/";
 
                $try = array( 'fileicon-' . $this->getExtension() . '.png', 'fileicon.png' );
                foreach ( $try as $icon ) {