From 904f84e97c80f3467a7617c1902d32d3f3c3ff80 Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Thu, 30 Jun 2011 22:47:41 +0000 Subject: [PATCH] (Follow-up r87705) per CR add docs to function. No code changes. --- includes/SpecialPageFactory.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/SpecialPageFactory.php b/includes/SpecialPageFactory.php index 88c549a138..ade2558c3f 100644 --- a/includes/SpecialPageFactory.php +++ b/includes/SpecialPageFactory.php @@ -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 -- 2.20.1