X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Flanguage%2FrebuildLanguage.php;h=66948aebc5d7a260531d44ea620e83785b740147;hb=beb1c4a0eced04ce2098433c383f1fbe469569c9;hp=ed2dae726070066fe7702e4354429bbb16a368da;hpb=c1402d103e793e96534b37006a58b7b381be4e16;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/language/rebuildLanguage.php b/maintenance/language/rebuildLanguage.php index ed2dae7260..66948aebc5 100644 --- a/maintenance/language/rebuildLanguage.php +++ b/maintenance/language/rebuildLanguage.php @@ -22,9 +22,9 @@ * @defgroup MaintenanceLanguage MaintenanceLanguage */ -require_once( dirname( __FILE__ ) . '/../commandLine.inc' ); -require_once( 'languages.inc' ); -require_once( 'writeMessagesArray.inc' ); +require_once __DIR__ . '/../commandLine.inc'; +require_once 'languages.inc'; +require_once 'writeMessagesArray.inc'; /** * Rewrite a messages array. @@ -56,13 +56,13 @@ function rebuildLanguage( $languages, $code, $write, $listUnknown, $removeUnknow */ function removeDupes( $oldMsgArray, $dupeMsgSource ) { if ( file_exists( $dupeMsgSource ) ) { - include( $dupeMsgSource ); + include $dupeMsgSource; if ( !isset( $dupeMessages ) ) { - echo( "There are no duplicated messages in the source file provided." ); + echo "There are no duplicated messages in the source file provided."; exit( 1 ); } } else { - echo ( "The specified file $dupeMsgSource cannot be found." ); + echo "The specified file $dupeMsgSource cannot be found."; exit( 1 ); } $newMsgArray = $oldMsgArray;