mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-15 19:09:27 +00:00
Change deprecated userCanMove() to userCan( 'move', true ). No more occurences in core or extensions.
This commit is contained in:
parent
27863e2b53
commit
7ba8e72dbc
Notes:
Yaron Koren
2009-07-20 18:49:29 +00:00
|
@ -188,7 +188,7 @@ class ReplaceText extends SpecialPage {
|
||||||
$new_page_name = str_replace( $this->target, $this->replacement, $cur_page_name );
|
$new_page_name = str_replace( $this->target, $this->replacement, $cur_page_name );
|
||||||
$new_title = Title::makeTitleSafe( $row->page_namespace, $new_page_name );
|
$new_title = Title::makeTitleSafe( $row->page_namespace, $new_page_name );
|
||||||
$err = $title->isValidMoveOperation( $new_title );
|
$err = $title->isValidMoveOperation( $new_title );
|
||||||
if ( $title->userCanMove( true ) && !is_array( $err ) ) {
|
if ( $title->userCan( 'move', true ) && !is_array( $err ) ) {
|
||||||
$titles_for_move[] = $title;
|
$titles_for_move[] = $title;
|
||||||
} else {
|
} else {
|
||||||
$unmoveable_titles[] = $title;
|
$unmoveable_titles[] = $title;
|
||||||
|
|
Loading…
Reference in a new issue