From 4d25a044815db262a5c5f836c9bdaf792d0b5cb9 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sun, 24 May 2009 08:59:39 +0000 Subject: [PATCH] Remove deprecated userCanCreate(), userCanEdit(), userCanMove(). Methods were deprecated in r19193 (2007-01-13) and are no longer used in current trunk or extensions. --- RELEASE-NOTES | 9 ++++++--- includes/FakeTitle.php | 3 --- includes/Title.php | 27 --------------------------- 3 files changed, 6 insertions(+), 33 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b11fca0b23..0a68541bc8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -147,10 +147,13 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 18522) Wrap MediaWiki:Protect-cascadeon in a div for identification * (bug 18438) Tweak HTML for preview bar for consistency and accessibility * (bug 18432) Updated documentation for dumpBackup.php -* Fix array logic in Sanitizer::removeHTMLtags so that it doesn't strip good tags - that were redundantly defined. +* Fix array logic in Sanitizer::removeHTMLtags so that it doesn't strip good + tags that were redundantly defined. * (bug 14118) SpecialPage::getTitleFor does not return a localised name -* (bug 18698) Renaming non entry point maintenance scripts from .inc.php to .inc +* (bug 18698) Renaming non entry point maintenance scripts from .inc.php to + .inc +* Deprecated methods userCanCreate(), userCanEdit() and userCanMove() have been + removed == API changes in 1.16 == diff --git a/includes/FakeTitle.php b/includes/FakeTitle.php index 10bfa53887..1c196a7378 100644 --- a/includes/FakeTitle.php +++ b/includes/FakeTitle.php @@ -38,9 +38,6 @@ class FakeTitle extends Title { function isProtected( $action = '' ) { $this->error(); } function userIsWatching() { $this->error(); } function userCan( $action, $doExpensiveQueries = true ) { $this->error(); } - function userCanCreate() { $this->error(); } - function userCanEdit( $doExpensiveQueries = true ) { $this->error(); } - function userCanMove() { $this->error(); } function isMovable() { $this->error(); } function userCanRead() { $this->error(); } function isTalkPage() { $this->error(); } diff --git a/includes/Title.php b/includes/Title.php index 084ae71b05..3c03eba941 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1463,33 +1463,6 @@ class Title { __METHOD__ ); } - /** - * Can $wgUser edit this page? - * @return \type{\bool} TRUE or FALSE - * @deprecated use userCan('edit') - */ - public function userCanEdit( $doExpensiveQueries = true ) { - return $this->userCan( 'edit', $doExpensiveQueries ); - } - - /** - * Can $wgUser create this page? - * @return \type{\bool} TRUE or FALSE - * @deprecated use userCan('create') - */ - public function userCanCreate( $doExpensiveQueries = true ) { - return $this->userCan( 'create', $doExpensiveQueries ); - } - - /** - * Can $wgUser move this page? - * @return \type{\bool} TRUE or FALSE - * @deprecated use userCan('move') - */ - public function userCanMove( $doExpensiveQueries = true ) { - return $this->userCan( 'move', $doExpensiveQueries ); - } - /** * Would anybody with sufficient privileges be able to move this page? * Some pages just aren't movable. -- 2.20.1