X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMovePage.php;h=b9af7553259a27c7f3ad7884b3830702329a42ce;hb=8974d199958457566cb431d2eed546752517475e;hp=afa4e1cdbbd02722af61ecfa6e2cd44c8aaca31a;hpb=53532602658252472c452910d18cb5d936f65305;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MovePage.php b/includes/MovePage.php index afa4e1cdbb..b9af755325 100644 --- a/includes/MovePage.php +++ b/includes/MovePage.php @@ -238,7 +238,7 @@ class MovePage { $file->load( File::READ_LATEST ); if ( $file->exists() ) { $status = $file->move( $this->newTitle ); - if ( !$status->isOk() ) { + if ( !$status->isOK() ) { return $status; } } @@ -369,7 +369,8 @@ class MovePage { $oldsnamespace = MWNamespace::getSubject( $this->oldTitle->getNamespace() ); $newsnamespace = MWNamespace::getSubject( $this->newTitle->getNamespace() ); if ( $oldsnamespace != $newsnamespace || $oldtitle != $newtitle ) { - WatchedItem::duplicateEntries( $this->oldTitle, $this->newTitle ); + $store = WatchedItemStore::getDefaultInstance(); + $store->duplicateAllAssociatedEntries( $this->oldTitle, $this->newTitle ); } Hooks::run(