X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2FRecentChange.php;h=885ff45532275808de5cd8ecfd88c501228bda82;hb=6059b4d6adef361cb6d5469fd738e554c2eaf3c4;hp=17f06cc323d77f589c9a8b446e6aa587a7ec0f92;hpb=78678afa7c178ce25582b1f6eb90d06151706d0c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 17f06cc323..885ff45532 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -318,9 +318,7 @@ class RecentChange { if( !$ip ) { $ip = wfGetIP(); - if( !$ip ) { - $ip = ''; - } + if( !$ip ) $ip = ''; } $rc = new RecentChange; @@ -372,9 +370,7 @@ class RecentChange { if( !$ip ) { $ip = wfGetIP(); - if( !$ip ) { - $ip = ''; - } + if( !$ip ) $ip = ''; } $rc = new RecentChange; @@ -420,12 +416,9 @@ class RecentChange public static function notifyMove( $timestamp, &$oldTitle, &$newTitle, &$user, $comment, $ip='', $overRedir = false ) { global $wgRequest; - if( !$ip ) { $ip = wfGetIP(); - if( !$ip ) { - $ip = ''; - } + if( !$ip ) $ip = ''; } $rc = new RecentChange; @@ -491,12 +484,9 @@ class RecentChange $type, $action, $target, $logComment, $params, $newId=0 ) { global $wgRequest; - if( !$ip ) { $ip = wfGetIP(); - if( !$ip ) { - $ip = ''; - } + if( !$ip ) $ip = ''; } $rc = new RecentChange;