correct string comparison for layout

This commit is contained in:
coderkun 2014-08-09 00:36:55 +02:00
parent 6a5f3739cc
commit 32af66a3e7

View file

@ -63,7 +63,7 @@
// LayoutName
$fileName = ROOT.DS. \nre\configs\CoreConfig::getClassDir('views').DS. strtolower($layoutName).DS;
// AgentName and Action
if(strtolower($agentName) != $layoutName || !$isToplevel) {
if(strtolower($agentName) != strtolower($layoutName) || !$isToplevel) {
$fileName .= strtolower($agentName).DS.strtolower($action);
}
else {