Kaldari has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/74575


Change subject: More accureate function descriptions
......................................................................

More accureate function descriptions

Change-Id: I633a7740996b8933778aa32036cb429026f75ebe
---
M includes/User.php
1 file changed, 11 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/75/74575/1

diff --git a/includes/User.php b/includes/User.php
index 685bce7..fb31b61 100644
--- a/includes/User.php
+++ b/includes/User.php
@@ -1828,8 +1828,14 @@
        }
 
        /**
-        * Return the revision and link for the oldest new talk page message for
-        * this user.
+        * Return the data needed to construct links for new page message 
alerts.
+        * If there are new messages, this will return an associative array 
with the
+        * following data:
+        *     wiki: The database name of the wiki
+        *     link: Root-relative link to the user's talk page
+        *     rev: Revision ID of the last talk page revision that the user has
+        *          seen or null. This is useful for building diff links.
+        * If there are no new message, it returns an empty array.
         * @note This function was designed to accomodate multiple talk pages, 
but
         * currently only returns a single link and revision.
         * @return Array
@@ -1853,8 +1859,9 @@
        }
 
        /**
-        * Get the revision ID for the oldest new talk page message for this 
user
-        * @return int|null Revision id or null if there are no new messages
+        * Get the revision ID for the last talk page revision viewed by the 
talk
+        * page owner.
+        * @return int|null Revision ID or null
         */
        public function getNewMessageRevisionId() {
                $newMessageRevisionId = null;

-- 
To view, visit https://gerrit.wikimedia.org/r/74575
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I633a7740996b8933778aa32036cb429026f75ebe
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Kaldari <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to