Sfoglia il codice sorgente

Changed load_resource_bundle() to use ResourceBundle::create() method instead of constructor

Derek ROTH 14 anni fa
parent
commit
9013e3639b

+ 1 - 1
src/Symfony/Component/Locale/Resources/data/update-data.php

@@ -94,7 +94,7 @@ function genrb_file($target, $source, $locale)
 
 function load_resource_bundle($locale, $directory)
 {
-    $bundle = new \ResourceBundle($locale, $directory);
+    $bundle = \ResourceBundle::create($locale, $directory);
 
     if (null === $bundle) {
         bailout('The resource bundle for locale '.$locale.' could not be loaded from directory '.$directory);