}
protected function getFileName( $code ) {
- if ( !$code || strpos( $code, '/' ) !== false ) {
+ if ( strval( $code ) === '' || strpos( $code, '/' ) !== false ) {
throw new MWException( __METHOD__ . ": Invalid language \"$code\"" );
}
return "{$this->directory}/l10n_cache-$code.cdb";