@@ 293-304 (lines=12) @@ | ||
290 | public function getPerformer() { |
|
291 | if ( !$this->performer ) { |
|
292 | $userId = (int)$this->row->log_user; |
|
293 | if ( $userId !== 0 ) { |
|
294 | // logged-in users |
|
295 | if ( isset( $this->row->user_name ) ) { |
|
296 | $this->performer = User::newFromRow( $this->row ); |
|
297 | } else { |
|
298 | $this->performer = User::newFromId( $userId ); |
|
299 | } |
|
300 | } else { |
|
301 | // IP users |
|
302 | $userText = $this->row->log_user_text; |
|
303 | $this->performer = User::newFromName( $userText, false ); |
|
304 | } |
|
305 | } |
|
306 | ||
307 | return $this->performer; |
|
@@ 354-363 (lines=10) @@ | ||
351 | } |
|
352 | ||
353 | public function getPerformer() { |
|
354 | if ( !$this->performer ) { |
|
355 | $userId = (int)$this->row->rc_user; |
|
356 | if ( $userId !== 0 ) { |
|
357 | $this->performer = User::newFromId( $userId ); |
|
358 | } else { |
|
359 | $userText = $this->row->rc_user_text; |
|
360 | // Might be an IP, don't validate the username |
|
361 | $this->performer = User::newFromName( $userText, false ); |
|
362 | } |
|
363 | } |
|
364 | ||
365 | return $this->performer; |
|
366 | } |