From 13e43c1fdba8040a13c2e2edf475d3b4b3638baf Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 20 Sep 2009 20:39:48 +0000 Subject: [PATCH] * (bug 20726) Title::getLatestRevID's documentation now says that the function returns false if the page doesn't exist --- RELEASE-NOTES | 2 ++ includes/Title.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1838004fd9..de0437b098 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -517,6 +517,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN editing an old version * (bug 16902) Installer no longer shows warnings when exec() has been disabled by disable_functions +* (bug 20726) Title::getLatestRevID's documentation now says that the function + returns false if the page doesn't exist == API changes in 1.16 == diff --git a/includes/Title.php b/includes/Title.php index b96011b375..3ceb7b1a1d 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2139,7 +2139,7 @@ class Title { /** * What is the page_latest field for this page? * @param $flags \type{\int} a bit field; may be GAID_FOR_UPDATE to select for update - * @return \type{\int} + * @return \type{\int} or false if the page doesn't exist */ public function getLatestRevID( $flags = 0 ) { if( $this->mLatestID !== false ) -- 2.20.1