includes/exception/MWException.php 1 location
|
@@ 57-61 (lines=5) @@
|
| 54 |
|
public function useMessageCache() { |
| 55 |
|
global $wgLang; |
| 56 |
|
|
| 57 |
|
foreach ( $this->getTrace() as $frame ) { |
| 58 |
|
if ( isset( $frame['class'] ) && $frame['class'] === 'LocalisationCache' ) { |
| 59 |
|
return false; |
| 60 |
|
} |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
return $wgLang instanceof Language; |
| 64 |
|
} |
includes/exception/MWExceptionRenderer.php 1 location
|
@@ 136-140 (lines=5) @@
|
| 133 |
|
*/ |
| 134 |
|
private static function useOutputPage( $e ) { |
| 135 |
|
// Can the extension use the Message class/wfMessage to get i18n-ed messages? |
| 136 |
|
foreach ( $e->getTrace() as $frame ) { |
| 137 |
|
if ( isset( $frame['class'] ) && $frame['class'] === 'LocalisationCache' ) { |
| 138 |
|
return false; |
| 139 |
|
} |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
return ( |
| 143 |
|
!empty( $GLOBALS['wgFullyInitialised'] ) && |