diff options
author | 2015-08-15 13:31:33 +0200 | |
---|---|---|
committer | 2015-08-15 13:31:33 +0200 | |
commit | e50bd0890c549fe3f4b5cd1cc990c643ba130ead (patch) | |
tree | 2f7c84bdb7011a0c43bad01b1af62153a626caef /MLEB/cldr/CldrCurrencies.php | |
parent | Update Widgets (diff) | |
download | extensions-e50bd0890c549fe3f4b5cd1cc990c643ba130ead.tar.gz extensions-e50bd0890c549fe3f4b5cd1cc990c643ba130ead.tar.bz2 extensions-e50bd0890c549fe3f4b5cd1cc990c643ba130ead.zip |
Update MLEB
Diffstat (limited to 'MLEB/cldr/CldrCurrencies.php')
-rw-r--r-- | MLEB/cldr/CldrCurrencies.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MLEB/cldr/CldrCurrencies.php b/MLEB/cldr/CldrCurrencies.php index c0ba240d..d094cedc 100644 --- a/MLEB/cldr/CldrCurrencies.php +++ b/MLEB/cldr/CldrCurrencies.php @@ -13,7 +13,7 @@ class CldrCurrency { /** * Loads the file which contains the relevant data * @param string $data 'symbols' | 'fractions' | 'locale' - * @throws MWException + * @throws Exception */ private static function loadData( $data ) { @@ -25,17 +25,17 @@ class CldrCurrency { $filename = null; switch ( $data ) { case 'symbols' : - $filename = dirname( __FILE__ ) . '/CldrCurrency/Symbols.php'; + $filename = __DIR__ . '/CldrCurrency/Symbols.php'; $value['symbols'] = 'currencySymbols'; break; case 'fractions' : case 'locale' : - $filename = dirname( __FILE__ ) . '/CldrSupplemental/Supplemental.php'; + $filename = __DIR__ . '/CldrSupplemental/Supplemental.php'; $value['fractions'] = 'currencyFractions'; $value['locale'] = 'localeCurrencies'; break; default: - throw new MWException( "Invalid 'data' parameter:\$data in " . __METHOD__ ); + throw new Exception( "Invalid 'data' parameter:\$data in " . __METHOD__ ); } //go get it |