Adding fix for Ticket #1698

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3967 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2006-11-25 20:30:17 +00:00
parent 76394b643f
commit f8274a3862

View file

@ -87,6 +87,9 @@
if(!class_exists('Model')){ if(!class_exists('Model')){
require LIBS . 'model' . DS . 'model.php'; require LIBS . 'model' . DS . 'model.php';
} }
if(!class_exists('AppModel')){
loadModel();
}
$pluginAppModel = Inflector::camelize($plugin . '_app_model'); $pluginAppModel = Inflector::camelize($plugin . '_app_model');
$pluginAppModelFile = APP . 'plugins' . DS . $plugin . DS . $plugin . '_app_model.php'; $pluginAppModelFile = APP . 'plugins' . DS . $plugin . DS . $plugin . '_app_model.php';
if (!class_exists($pluginAppModel)) { if (!class_exists($pluginAppModel)) {