Index: trunk/phase3/includes/LocalisationCache.php |
— | — | @@ -645,6 +645,11 @@ |
646 | 646 | # Run hooks |
647 | 647 | wfRunHooks( 'LocalisationCacheRecache', array( $this, $code, &$allData ) ); |
648 | 648 | |
| 649 | + if ( is_null( $allData['namespaceNames'] ) ) { |
| 650 | + throw new MWException( __METHOD__.': Localisation data failed sanity check! ' . |
| 651 | + 'Check that your languages/messages/MessagesEn.php file is intact.' ); |
| 652 | + } |
| 653 | + |
649 | 654 | # Set the preload key |
650 | 655 | $allData['preload'] = $this->buildPreload( $allData ); |
651 | 656 | |