http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88133
Revision: 88133
Author: aaron
Date: 2011-05-15 06:32:26 +0000 (Sun, 15 May 2011)
Log Message:
-----------
Marked some _Newtalk functions protected
Modified Paths:
--------------
trunk/phase3/includes/User.php
Modified: trunk/phase3/includes/User.php
===================================================================
--- trunk/phase3/includes/User.php 2011-05-15 01:07:15 UTC (rev 88132)
+++ trunk/phase3/includes/User.php 2011-05-15 06:32:26 UTC (rev 88133)
@@ -1653,9 +1653,8 @@
* @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 @@
* @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 @@
* @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 ),
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs