* (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 ===
/**
* 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 );
);
}
- 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() );
return $gis;
}
- function getShortDesc( $file ) {
+ static function getShortDesc( $file ) {
global $wgLang;
$nbytes = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ),
$wgLang->formatNum( $file->getSize() ) );
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() );
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() ) );