Change deprecated userCanMove() to userCan( 'move', true ). No more occurences in core or extensions.

This commit is contained in:
Siebrand Mazeland 2009-05-24 08:52:19 +00:00
parent 27863e2b53
commit 7ba8e72dbc
Notes: Yaron Koren 2009-07-20 18:49:29 +00:00

View file

@ -188,7 +188,7 @@ class ReplaceText extends SpecialPage {
$new_page_name = str_replace( $this->target, $this->replacement, $cur_page_name );
$new_title = Title::makeTitleSafe( $row->page_namespace, $new_page_name );
$err = $title->isValidMoveOperation( $new_title );
if ( $title->userCanMove( true ) && !is_array( $err ) ) {
if ( $title->userCan( 'move', true ) && !is_array( $err ) ) {
$titles_for_move[] = $title;
} else {
$unmoveable_titles[] = $title;