E_STRICT
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 15 Dec 2008 21:38:04 +0000 (21:38 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 15 Dec 2008 21:38:04 +0000 (21:38 +0000)
includes/filerepo/File.php
includes/media/Generic.php
includes/media/SVG.php

index 9335799..d28fba0 100644 (file)
@@ -1218,7 +1218,7 @@ abstract class File {
                if ( $handler ) {
                        return $handler->getLongDesc( $this );
                } else {
-                       return MediaHandler::getLongDesc( $this );
+                       return MediaHandler::getLongDescription( $this );
                }
        }
 
@@ -1227,7 +1227,7 @@ abstract class File {
                if ( $handler ) {
                        return $handler->getShortDesc( $this );
                } else {
-                       return MediaHandler::getShortDesc( $this );
+                       return MediaHandler::getShortDescription( $this );
                }
        }
 
index b2cb70f..3e6c944 100644 (file)
@@ -224,15 +224,23 @@ abstract class MediaHandler {
                        'value' => $value
                );
        }
-
+       
        function getShortDesc( $file ) {
+               return self::getShortDescription( $file );
+       }
+
+       function getLongDesc( $file ) {
+               return self::getLongDescription( $file );
+       }       
+
+       static function getShortDescription( $file ) {
                global $wgLang;
                $nbytes = '(' . wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ),
                        $wgLang->formatNum( $file->getSize() ) ) . ')';
                return "$nbytes";
        }
 
-       function getLongDesc( $file ) {
+       static function getLongDescription( $file ) {
                global $wgUser;
                $sk = $wgUser->getSkin();
                return wfMsgExt( 'file-info', 'parseinline',
index f0519e8..c7ca213 100644 (file)
@@ -112,7 +112,7 @@ class SvgHandler extends ImageHandler {
                return array( 'png', 'image/png' );
        }
 
-       function getLongDesc( $file ) {
+       static function getLongDescription( $file ) {
                global $wgLang;
                return wfMsgExt( 'svg-long-desc', 'parseinline',
                        $wgLang->formatNum( $file->getWidth() ),