From b741bcd22784f291aae137627c48a377ba40f5b3 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 14 Sep 2011 19:05:43 +0000 Subject: [PATCH] FU r84610: Renamed getImageTimeKeys() to getFileSearchOptions() --- includes/OutputPage.php | 4 ++-- includes/parser/ParserOutput.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 2c05a49e58..7760d15454 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1301,7 +1301,7 @@ class OutputPage extends ContextSource { * @return Array (dbKey => array('time' => MW timestamp or null, 'sha1' => sha1 or '')) * @since 1.18 */ - public function getImageTimeKeys() { + public function getFileSearchOptions() { return $this->mImageTimeKeys; } @@ -1415,7 +1415,7 @@ class OutputPage extends ContextSource { } } // File versioning... - foreach ( (array)$parserOutput->getImageTimeKeys() as $dbk => $data ) { + foreach ( (array)$parserOutput->getFileSearchOptions() as $dbk => $data ) { $this->mImageTimeKeys[$dbk] = $data; } diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index 045a85250c..eefefac736 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -124,7 +124,7 @@ class ParserOutput extends CacheTime { $mDistantTemplates = array(), # 3-D map of WIKIID/NS/DBK to ID for the template references. ID=zero for broken. $mDistantTemplateIds = array(), # 3-D map of WIKIID/NS/DBK to rev ID for the template references. ID=zero for broken. $mImages = array(), # DB keys of the images used, in the array key only - $mImageTimeKeys = array(), # DB keys of the images used mapped to sha1 and MW timestamp + $mFileSearchOptions = array(), # DB keys of the images used mapped to sha1 and MW timestamp $mExternalLinks = array(), # External link URLs, in the key only $mInterwikiLinks = array(), # 2-D map of prefix/DBK (in keys only) for the inline interwiki links in the document. $mNewSection = false, # Show a new section link? @@ -197,7 +197,7 @@ class ParserOutput extends CacheTime { function &getDistantTemplateIds() { return $this->mDistantTemplateIds; } function &getTemplateIds() { return $this->mTemplateIds; } function &getImages() { return $this->mImages; } - function &getImageTimeKeys() { return $this->mImageTimeKeys; } + function &getFileSearchOptions() { return $this->mFileSearchOptions; } function &getExternalLinks() { return $this->mExternalLinks; } function getNoGallery() { return $this->mNoGallery; } function getHeadItems() { return $this->mHeadItems; } @@ -292,7 +292,7 @@ class ParserOutput extends CacheTime { function addImage( $name, $timestamp = null, $sha1 = null ) { $this->mImages[$name] = 1; if ( $timestamp !== null && $sha1 !== null ) { - $this->mImageTimeKeys[$name] = array( 'time' => $timestamp, 'sha1' => $sha1 ); + $this->mFileSearchOptions[$name] = array( 'time' => $timestamp, 'sha1' => $sha1 ); } } -- 2.20.1