Prevent accidently translating "%score" as "score"

This commit is contained in:
dmromanov 2013-08-15 03:27:26 +04:00
parent bcfa07700b
commit ff01c28735

View file

@ -70,7 +70,7 @@ class Configure {
self::_appDefaults(); self::_appDefaults();
if (!include APP . 'Config' . DS . 'core.php') { if (!include APP . 'Config' . DS . 'core.php') {
trigger_error(__d('cake_dev', "Can't find application core file. Please create %score.php, and make sure it is readable by PHP.", APP . 'Config' . DS), E_USER_ERROR); trigger_error(__d('cake_dev', "Can't find application core file. Please create %s, and make sure it is readable by PHP.", APP . 'Config' . DS . 'core.php'), E_USER_ERROR);
} }
App::init(); App::init();
App::$bootstrapping = false; App::$bootstrapping = false;
@ -86,7 +86,7 @@ class Configure {
self::_setErrorHandlers($error, $exception); self::_setErrorHandlers($error, $exception);
if (!include APP . 'Config' . DS . 'bootstrap.php') { if (!include APP . 'Config' . DS . 'bootstrap.php') {
trigger_error(__d('cake_dev', "Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP.", APP . 'Config' . DS), E_USER_ERROR); trigger_error(__d('cake_dev', "Can't find application bootstrap file. Please create %s, and make sure it is readable by PHP.", APP . 'Config' . DS . 'bootstrap.php'), E_USER_ERROR);
} }
restore_error_handler(); restore_error_handler();