瀏覽代碼

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

Derek ROTH 14 年之前
父節點
當前提交
9013e3639b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Component/Locale/Resources/data/update-data.php

+ 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);