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
|
@@ 2030-2038 (lines=9) @@
|
| 2027 |
|
* @return IContextSource |
| 2028 |
|
* @since 1.18 |
| 2029 |
|
*/ |
| 2030 |
|
public function getContext() { |
| 2031 |
|
if ( $this->mContext instanceof IContextSource ) { |
| 2032 |
|
return $this->mContext; |
| 2033 |
|
} else { |
| 2034 |
|
wfDebug( __METHOD__ . " called and \$mContext is null. " . |
| 2035 |
|
"Return RequestContext::getMain(); for sanity\n" ); |
| 2036 |
|
return RequestContext::getMain(); |
| 2037 |
|
} |
| 2038 |
|
} |
| 2039 |
|
|
| 2040 |
|
/** |
| 2041 |
|
* Use PHP's magic __get handler to handle accessing of |