From f8274a386237d146cd45c34265dfec1918cd271e Mon Sep 17 00:00:00 2001 From: phpnut Date: Sat, 25 Nov 2006 20:30:17 +0000 Subject: [PATCH] Adding fix for Ticket #1698 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3967 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/basics.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cake/basics.php b/cake/basics.php index 0c74c01a6..2f0b0a261 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -87,6 +87,9 @@ if(!class_exists('Model')){ require LIBS . 'model' . DS . 'model.php'; } + if(!class_exists('AppModel')){ + loadModel(); + } $pluginAppModel = Inflector::camelize($plugin . '_app_model'); $pluginAppModelFile = APP . 'plugins' . DS . $plugin . DS . $plugin . '_app_model.php'; if (!class_exists($pluginAppModel)) {