X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FRecentChange.php;h=cd8a1b5ba8c2f8963f1228b8a478ac6a7834ddb7;hb=02e82b703119c183d0933870539891ee00d23f9b;hp=a1097bec150a2e5ed3a85ee9b1667bf750b2faed;hpb=3ebbdc7d0d16231089932cba3c3f3883348d6b03;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/RecentChange.php b/includes/RecentChange.php index a1097bec15..cd8a1b5ba8 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -1,5 +1,25 @@ mAttribs['rc_type'] == RC_LOG ) { - $titleObj = SpecialPage::getTitleFor( 'Log', $this->mAttribs['rc_log_type'] ); + // Don't use SpecialPage::getTitleFor, backwards compatibility with + // IRC API which expects "Log". + $titleObj = Title::newFromText( 'Log/' . $this->mAttribs['rc_log_type'], NS_SPECIAL ); } else { $titleObj =& $this->getTitle(); } @@ -751,7 +773,7 @@ class RecentChange { return ChangesList::showCharacterDifference( $old, $new ); } - public static function checkIPAddress( $ip ) { + private static function checkIPAddress( $ip ) { global $wgRequest; if ( $ip ) { if ( !IP::isIPAddress( $ip ) ) {