From: Alexandre Emsenhuber Date: Sat, 26 Apr 2008 14:45:00 +0000 (+0000) Subject: (bug 13643) Fixed some PHP Strict Standards errors X-Git-Tag: 1.31.0-rc.0~48059 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=4955b32c9ddac2d9dd7d4b6a39bd5847cd648cfc;p=lhc%2Fweb%2Fwiklou.git (bug 13643) Fixed some PHP Strict Standards errors --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b14a7b49b2..19f6b6f828 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/filerepo/FileRepoStatus.php b/includes/filerepo/FileRepoStatus.php index 7e473dbfb5..d681c46e50 100644 --- a/includes/filerepo/FileRepoStatus.php +++ b/includes/filerepo/FileRepoStatus.php @@ -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 ); diff --git a/includes/media/Generic.php b/includes/media/Generic.php index 8c3ed06f0f..135f78367d 100644 --- a/includes/media/Generic.php +++ b/includes/media/Generic.php @@ -224,14 +224,14 @@ abstract class MediaHandler { ); } - function getShortDesc( $file ) { + static function getShortDesc( $file ) { global $wgLang; $nbytes = '(' . wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ), $wgLang->formatNum( $file->getSize() ) ) . ')'; return "$nbytes"; } - function getLongDesc( $file ) { + static 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; } - function getShortDesc( $file ) { + static 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)"; } - function getLongDesc( $file ) { + static function getLongDesc( $file ) { global $wgLang; return wfMsgHtml('file-info-size', $wgLang->formatNum( $file->getWidth() ), $wgLang->formatNum( $file->getHeight() ), $wgLang->formatSize( $file->getSize() ), $file->getMimeType() ); diff --git a/includes/media/SVG.php b/includes/media/SVG.php index 698e10e2a4..c06f889561 100644 --- a/includes/media/SVG.php +++ b/includes/media/SVG.php @@ -92,7 +92,7 @@ class SvgHandler extends ImageHandler { return array( 'png', 'image/png' ); } - function getLongDesc( $file ) { + static function getLongDesc( $file ) { global $wgLang; return wfMsg( 'svg-long-desc', $file->getWidth(), $file->getHeight(), $wgLang->formatSize( $file->getSize() ) );