mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding and updating core error messages
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4595 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
06eea06980
commit
169832606c
2 changed files with 4 additions and 2 deletions
|
@ -437,7 +437,9 @@ class Configure extends Object {
|
|||
$componentPaths = null;
|
||||
$behaviorPaths = null;
|
||||
if ($boot) {
|
||||
require APP_PATH . 'config' . DS . 'bootstrap.php';
|
||||
if (!include(APP_PATH . 'config' . DS . 'bootstrap.php')) {
|
||||
trigger_error("Can't find application bootstrap file. Please create " . CONFIGS . "bootstrap.php, and make sure it is readable by PHP.", E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
$_this->__buildModelPaths($modelPaths);
|
||||
$_this->__buildViewPaths($viewPaths);
|
||||
|
|
|
@ -145,7 +145,7 @@ class Helper extends Overloadable {
|
|||
function get__($name) {}
|
||||
function set__($name, $value) {}
|
||||
function call__($method, $params) {
|
||||
trigger_error(sprintf(__('Method %1$s::%2$s does not exist', true), get_class($this), $method), E_USER_ERROR);
|
||||
trigger_error(sprintf(__('Method %1$s::%2$s does not exist', true), get_class($this), $method), E_USER_WARNING);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue