* (bug 12935, 12981) Fully-qualify archive URLs in delete, revert messages
[lhc/web/wiklou.git] / includes / filerepo / File.php
index f4b28db..5172ad0 100644 (file)
@@ -155,12 +155,7 @@ abstract class File {
         * @return string
         */
        public function getFullUrl() {
-               $url = $this->getUrl();
-               if( substr( $url, 0, 1 ) == '/' ) {
-                       global $wgServer;
-                       return $wgServer . $url;
-               }
-               return $url;
+               return wfExpandUrl( $this->getUrl() );
        }
 
        function getViewURL() {