Skip to content

Commit

Permalink
Wikia r54776: bugid: 32276 -- updated logic calling SpecialPage::reso…
Browse files Browse the repository at this point in the history
…lveAlias to use SpecialPageFactory::resolveAlias directly

(cherry picked from http://trac.wikia-code.com/changeset/54776)
  • Loading branch information
garbear committed Jul 2, 2012
1 parent 1bce55c commit ce46cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Facebook/SpecialConnect.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private function setReturnTo() {

$title = Title::newFromText($this->mReturnTo);
if ($title instanceof Title) {
$resolvedReturnTo = strtolower(SpecialPage::resolveAlias($title->getDBKey()));
$resolvedReturnTo = strtolower(array_shift(SpecialPageFactory::resolveAlias($title->getDBKey())));
if (in_array( $resolvedReturnTo, array('userlogout', 'signup', 'connect') )) {
$titleObj = Title::newMainPage();
$this->mReturnTo = $titleObj->getText();
Expand Down

0 comments on commit ce46cad

Please sign in to comment.