mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
76394b643f
commit
f8274a3862
1 changed files with 3 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue