Enabling auto-load for AppHelper

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3751 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-10-27 21:41:34 +00:00
parent de52eb88c9
commit 607dfac428

View file

@ -264,6 +264,13 @@
*/
function loadHelper($name) {
$paths = Configure::getInstance();
if (!class_exists('AppHelper')) {
if (file_exists(APP . 'app_helper.php')) {
require(APP . 'app_helper.php');
} else {
require(CAKE . 'app_helper.php');
}
}
if ($name === null) {
return true;