Remove undefined $user variable

findLinks() doesn't have a third parameter and an undefined one
wouldn't be all that useful even if it did.

Change-Id: I250b558d7b97a6355b3d86b71b3a37399b3c6eb0
This commit is contained in:
Chad Horohoe 2015-04-03 11:14:36 -07:00
parent 12ac8eeec6
commit 494c807cf4

View file

@ -383,8 +383,8 @@ class SimpleCaptcha {
} else {
// Get link changes in the slowest way known to man
$oldtext = isset( $oldtext ) ? $oldtext : $this->loadText( $title, $section, $loadOldtextFlags );
$oldLinks = $this->findLinks( $title, $oldtext, $user );
$newLinks = $this->findLinks( $title, $newtext, $user );
$oldLinks = $this->findLinks( $title, $oldtext );
$newLinks = $this->findLinks( $title, $newtext );
}
$unknownLinks = array_filter( $newLinks, array( &$this, 'filterLink' ) );