aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Article.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Article.php')
-rw-r--r--includes/Article.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/includes/Article.php b/includes/Article.php
index 2fdcd1a29ee5..f87ca23e3f63 100644
--- a/includes/Article.php
+++ b/includes/Article.php
@@ -357,6 +357,18 @@ class Article extends Page {
}
/**
+ * Get the fetched Revision object depending on request parameters or null
+ * on failure.
+ *
+ * @return Revision|null
+ */
+ public function getRevisionFetched() {
+ $this->fetchContent();
+
+ return $this->mRevision;
+ }
+
+ /**
* Use this to fetch the rev ID used on page views
*
* @return int revision ID of last article revision