Fixed spacing
[lhc/web/wiklou.git] / maintenance / generateJsonI18n.php
index 9c8354c..3b2374d 100644 (file)
@@ -65,7 +65,7 @@ class GenerateJsonI18n extends Maintenance {
                        $extensionStyle = false;
                        $langcode = $this->getOption( 'langcode' );
                        $messages = array( $langcode => $messages );
-               } else if ( $this->hasOption( 'langcode' ) ) {
+               } elseif ( $this->hasOption( 'langcode' ) ) {
                        $this->output( "Warning: --langcode option set but will not be used.\n" );
                }
 
@@ -125,7 +125,7 @@ $GLOBALS['wgHooks']['LocalisationCacheRecache'][] = function ( $cache, $code, &$
 
 PHP;
 
-               $jsondir = str_replace('\\', '/', $jsondir );
+               $jsondir = str_replace( '\\', '/', $jsondir );
                $shim = str_replace( '{{OUT}}', $jsondir, $shim );
                return $shim;
        }