diff options
author | Aaron Schulz <aaron@users.mediawiki.org> | 2011-05-15 06:32:26 +0000 |
---|---|---|
committer | Aaron Schulz <aaron@users.mediawiki.org> | 2011-05-15 06:32:26 +0000 |
commit | ca25c69e6163267d88c4c5b45b054f325abf08c3 (patch) | |
tree | 6e85fa0d44f53165b6bca0f7f6fb554e4bc37670 | |
parent | 0ee7b5c2ead1abe722b5cdfc6e93578c021be463 (diff) | |
download | mediawikicore-ca25c69e6163267d88c4c5b45b054f325abf08c3.tar.gz mediawikicore-ca25c69e6163267d88c4c5b45b054f325abf08c3.zip |
Marked some _Newtalk functions protected
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/88133
-rw-r--r-- | includes/User.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/includes/User.php b/includes/User.php index 3ba7a953ff72..0a7915057b55 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1653,9 +1653,8 @@ class User { * @param $id String|Int User's IP address for anonymous users, User ID otherwise * @param $fromMaster Bool true to fetch from the master, false for a slave * @return Bool True if the user has new messages - * @private */ - function checkNewtalk( $field, $id, $fromMaster = false ) { + protected function checkNewtalk( $field, $id, $fromMaster = false ) { if ( $fromMaster ) { $db = wfGetDB( DB_MASTER ); } else { @@ -1671,9 +1670,8 @@ class User { * @param $field String 'user_ip' for anonymous users, 'user_id' otherwise * @param $id String|Int User's IP address for anonymous users, User ID otherwise * @return Bool True if successful, false otherwise - * @private */ - function updateNewtalk( $field, $id ) { + protected function updateNewtalk( $field, $id ) { $dbw = wfGetDB( DB_MASTER ); $dbw->insert( 'user_newtalk', array( $field => $id ), @@ -1693,9 +1691,8 @@ class User { * @param $field String 'user_ip' for anonymous users, 'user_id' otherwise * @param $id String|Int User's IP address for anonymous users, User ID otherwise * @return Bool True if successful, false otherwise - * @private */ - function deleteNewtalk( $field, $id ) { + protected function deleteNewtalk( $field, $id ) { $dbw = wfGetDB( DB_MASTER ); $dbw->delete( 'user_newtalk', array( $field => $id ), |