Index: trunk/phase3/includes/api/ApiPurge.php |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | $result[] = $r; |
70 | 70 | continue; |
71 | 71 | } |
72 | | - $context = $this->createContext(); |
| 72 | + $context = new DerivativeContext( $this->getContext() ); |
73 | 73 | $context->setTitle( $title ); |
74 | 74 | $article = Article::newFromTitle( $title, $context ); |
75 | 75 | $article->doPurge(); // Directly purge and skip the UI part of purge(). |
Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -183,11 +183,11 @@ |
184 | 184 | * The object will have the WebRequest and the User object set to the ones |
185 | 185 | * used in this instance. |
186 | 186 | * |
187 | | - * @deprecated 1.19 use getContext to get the current context |
188 | | - * @return RequestContext |
| 187 | + * @deprecated since 1.19 use getContext to get the current context |
| 188 | + * @return DerivativeContext |
189 | 189 | */ |
190 | 190 | public function createContext() { |
191 | | - return $this->getContext(); |
| 191 | + return new DerivativeContext( $this->getContext() ); |
192 | 192 | } |
193 | 193 | |
194 | 194 | /** |