Merge "Add expensive parser functions {{REVISION*:}}"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 4 Nov 2013 23:21:46 +0000 (23:21 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 4 Nov 2013 23:21:46 +0000 (23:21 +0000)
1  2 
RELEASE-NOTES-1.23
includes/parser/Parser.php

diff --combined RELEASE-NOTES-1.23
@@@ -18,6 -18,8 +18,8 @@@ production
    This capability can be enabled by setting $wgResourceLoaderStorageEnabled to
    true. This feature is currently considered experimental and should only be
    enabled with care.
+ * (bug 6092) Add expensive parser functions {{REVISIONID:}}, {{REVISIONUSER:}}
+   and {{REVISIONTIMESTAMP:}} (with friends).
  
  === Bug fixes in 1.23 ===
  * (bug 41759) The "updated since last visit" markers (on history pages, recent
@@@ -34,7 -36,6 +36,7 @@@ regularly. Below only new and removed l
  changes to languages because of Bugzilla reports.
  
  === Other changes in 1.23 ===
 +* The global variable $wgArticle has been removed after a lengthy deprecation
  
  == Compatibility ==
  
@@@ -1863,9 -1863,7 +1863,9 @@@ class Parser 
                if ( $useLinkPrefixExtension ) {
                        # Match the end of a line for a word that's not followed by whitespace,
                        # e.g. in the case of 'The Arab al[[Razi]]', 'al' will be matched
 -                      $e2 = wfMessage( 'linkprefix' )->inContentLanguage()->text();
 +                      global $wgContLang;
 +                      $charset = $wgContLang->linkPrefixCharset();
 +                      $e2 = "/^((?>.*[^$charset]|))(.+)$/sDu";
                }
  
                if ( is_null( $this->mTitle ) ) {
         * Get the revision object for $this->mRevisionId
         *
         * @return Revision|null either a Revision object or null
+        * @since 1.23 (public since 1.23)
         */
-       protected function getRevisionObject() {
+       public function getRevisionObject() {
                if ( !is_null( $this->mRevisionObject ) ) {
                        return $this->mRevisionObject;
                }