maximebf / atomik

Micro framework for PHP 5.3+ [UNMAINTAINED]
MIT License
46 stars 18 forks source link

Bug with Translation 'register helper' #7

Closed rippak closed 11 years ago

rippak commented 11 years ago

By default helper 'translate' won't be registered because method 'Atomik\Translations::_' is undefined for that moment.

So need to make helpers with defined method 'Atomik\Translations::translate'

app/plugins/Translations.php

@@ -45,8 +45,8 @@
         ), $config);
         self::$config = &$config;

-        Atomik::registerHelper('translate', 'Atomik\Translations::_');
-        Atomik::registerHelper('_', 'Atomik\Translations::_');
+        Atomik::registerHelper('translate', 'Atomik\Translations::translate');
+        Atomik::registerHelper('_', 'Atomik\Translations::translate');
     }