do not apply admin layout when faceoff edit view

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8952 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-08-30 09:53:54 +00:00
parent 0b48476de8
commit 236bb1528b

View file

@ -276,10 +276,13 @@
{ {
$logged_info = Context::get('logged_info'); $logged_info = Context::get('logged_info');
if($logged_info->is_admin=='Y'){ if($logged_info->is_admin=='Y'){
$oAdminView = &getAdminView('admin'); if ($this->act != 'dispLayoutAdminLayoutModify')
$oAdminView->makeGnbUrl($forward->module); {
$oModule->setLayoutPath("./modules/admin/tpl"); $oAdminView = &getAdminView('admin');
$oModule->setLayoutFile("layout.html"); $oAdminView->makeGnbUrl($forward->module);
$oModule->setLayoutPath("./modules/admin/tpl");
$oModule->setLayoutFile("layout.html");
}
}else{ }else{
$this->error = 'msg_is_not_administrator'; $this->error = 'msg_is_not_administrator';
$oMessageObject = &ModuleHandler::getModuleInstance('message',$type); $oMessageObject = &ModuleHandler::getModuleInstance('message',$type);