(Follow-up r87705) per CR add docs to function. No code changes.
authorBrian Wolff <bawolff@users.mediawiki.org>
Thu, 30 Jun 2011 22:47:41 +0000 (22:47 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Thu, 30 Jun 2011 22:47:41 +0000 (22:47 +0000)
includes/SpecialPageFactory.php

index 88c549a..ade2558 100644 (file)
@@ -468,6 +468,10 @@ class SpecialPageFactory {
         * Returns false if there was no such special page, or a title object if it was
         * a redirect.
         *
+        * Also saves the current $wgTitle, $wgOut, and $wgRequest variables so that
+        * the special page will get the context it'd expect on a normal request,
+        * and then restores them to their previous values after.
+        *
         * @param $title Title
         *
         * @return String: HTML fragment