includes/specialpage/SpecialPage.php 1 location
|
@@ 648-657 (lines=10) @@
|
| 645 |
|
* @return IContextSource|RequestContext |
| 646 |
|
* @since 1.18 |
| 647 |
|
*/ |
| 648 |
|
public function getContext() { |
| 649 |
|
if ( $this->mContext instanceof IContextSource ) { |
| 650 |
|
return $this->mContext; |
| 651 |
|
} else { |
| 652 |
|
wfDebug( __METHOD__ . " called and \$mContext is null. " . |
| 653 |
|
"Return RequestContext::getMain(); for sanity\n" ); |
| 654 |
|
|
| 655 |
|
return RequestContext::getMain(); |
| 656 |
|
} |
| 657 |
|
} |
| 658 |
|
|
| 659 |
|
/** |
| 660 |
|
* Get the WebRequest being used for this instance |
includes/page/Article.php 1 location
|
@@ 2023-2031 (lines=9) @@
|
| 2020 |
|
* @return IContextSource |
| 2021 |
|
* @since 1.18 |
| 2022 |
|
*/ |
| 2023 |
|
public function getContext() { |
| 2024 |
|
if ( $this->mContext instanceof IContextSource ) { |
| 2025 |
|
return $this->mContext; |
| 2026 |
|
} else { |
| 2027 |
|
wfDebug( __METHOD__ . " called and \$mContext is null. " . |
| 2028 |
|
"Return RequestContext::getMain(); for sanity\n" ); |
| 2029 |
|
return RequestContext::getMain(); |
| 2030 |
|
} |
| 2031 |
|
} |
| 2032 |
|
|
| 2033 |
|
/** |
| 2034 |
|
* Use PHP's magic __get handler to handle accessing of |