Revert r33911 for now -- causes fatal error death with OggHandler at least.
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 26 Apr 2008 18:16:43 +0000 (18:16 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 26 Apr 2008 18:16:43 +0000 (18:16 +0000)
Probably needs some cleanup to see which of these are actually supposed to be used statically.

RELEASE-NOTES
includes/filerepo/FileRepoStatus.php
includes/media/Generic.php
includes/media/SVG.php

index 03e0351..5d6b4a9 100644 (file)
@@ -216,7 +216,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 13816) Filter by main namespace doesn't work on WhatLinksHere
 * (bug 13822) Fatal error on some pages when calculating subpage subtitle
 * (bug 13824) AJAX search suggestion now works with non-SkinTemplate skins
-* (bug 13643) Fixed some PHP Strict Standards errors
+
 
 === API changes in 1.13 ===
 
index d681c46..7e473db 100644 (file)
@@ -7,7 +7,7 @@ class FileRepoStatus extends Status {
        /**
         * Factory function for fatal errors
         */
-       static function newFatal( $repo /*, $message , parameters...*/ ) {
+       static function newFatal( $repo, $message /*, parameters...*/ ) {
                $params = array_slice( func_get_args(), 1 );
                $result = new self( $repo );
                call_user_func_array( array( &$result, 'error' ), $params );
index 135f783..8c3ed06 100644 (file)
@@ -224,14 +224,14 @@ abstract class MediaHandler {
                );
        }
 
-       static function getShortDesc( $file ) {
+       function getShortDesc( $file ) {
                global $wgLang;
                $nbytes = '(' . wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ),
                        $wgLang->formatNum( $file->getSize() ) ) . ')';
                return "$nbytes";
        }
 
-       static function getLongDesc( $file ) {
+       function getLongDesc( $file ) {
                global $wgUser;
                $sk = $wgUser->getSkin();
                return wfMsg( 'file-info', $sk->formatSize( $file->getSize() ), $file->getMimeType() );
@@ -398,7 +398,7 @@ abstract class ImageHandler extends MediaHandler {
                return $gis;
        }
 
-       static function getShortDesc( $file ) {
+       function getShortDesc( $file ) {
                global $wgLang;
                $nbytes = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ),
                        $wgLang->formatNum( $file->getSize() ) );
@@ -407,7 +407,7 @@ abstract class ImageHandler extends MediaHandler {
                return "$widthheight ($nbytes)";
        }
 
-       static function getLongDesc( $file ) {
+       function getLongDesc( $file ) {
                global $wgLang;
                return wfMsgHtml('file-info-size', $wgLang->formatNum( $file->getWidth() ), $wgLang->formatNum( $file->getHeight() ),
                        $wgLang->formatSize( $file->getSize() ), $file->getMimeType() );
index c06f889..698e10e 100644 (file)
@@ -92,7 +92,7 @@ class SvgHandler extends ImageHandler {
                return array( 'png', 'image/png' );
        }
 
-       static function getLongDesc( $file ) {
+       function getLongDesc( $file ) {
                global $wgLang;
                return wfMsg( 'svg-long-desc', $file->getWidth(), $file->getHeight(),
                        $wgLang->formatSize( $file->getSize() ) );