diff --git a/e107_admin/cpage.php b/e107_admin/cpage.php index 06493934b..a12b9ed9a 100644 --- a/e107_admin/cpage.php +++ b/e107_admin/cpage.php @@ -139,27 +139,33 @@ class page_admin extends e_admin_dispatcher class page_admin_form_ui extends e_admin_form_ui { - /*public function faq_info_parent($curVal,$mode) + + function page_title($curVal,$mode,$parm) { - // TODO - catlist combo without current cat ID in write mode, parents only for batch/filter - // Get UI instance - $controller = $this->getController(); - switch($mode) + // $parm = $this->getController()->getUI()->getDataFields(); //$model->getData(); + // print_a($parm); + $parm = ""; + if($mode == 'read') // FIXME - Link not working as intended. { - case 'read': - return e107::getParser()->toHTML($controller->getFaqCategoryTree($curVal), false, 'TITLE'); - break; - - case 'write': - return $this->selectbox('faq_info_parent', $controller->getFaqCategoryTree(), $curVal); - break; - - case 'filter': - case 'batch': - return $controller->getFaqCategoryTree(); - break; + return "".$curVal.""; } - }*/ + + if($mode == 'write') + { + return; + } + + if($mode == 'filter') + { + return; + } + if($mode == 'batch') + { + return; + } + } + + } @@ -184,7 +190,7 @@ class page_admin_ui extends e_admin_ui protected $fields = array( 'checkboxes' => array('title'=> '', 'type' => null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'), 'page_id' => array('title'=> 'ID', 'width'=>'5%', 'forced'=> TRUE), - 'page_title' => array('title'=> CUSLAN_1, 'type' => 'text', 'width'=>'auto'), + 'page_title' => array('title'=> CUSLAN_1, 'type' => 'method', 'width'=>'auto'), 'page_theme' => array('title'=> CUSLAN_2, 'type' => 'text', 'width' => 'auto','nolist'=>true), 'page_template' => array('title'=> 'Template', 'type' => 'text', 'width' => 'auto'), 'page_author' => array('title'=> LAN_AUTHOR, 'type' => 'user', 'width' => 'auto', 'thclass' => 'left'), @@ -785,6 +791,8 @@ class page_admin_ui extends e_admin_ui } } + + require_once('auth.php'); new page_admin(); diff --git a/e107_admin/e107_update.php b/e107_admin/e107_update.php index 8361630d8..c6b0559b7 100644 --- a/e107_admin/e107_update.php +++ b/e107_admin/e107_update.php @@ -33,13 +33,14 @@ $frm = e107::getForm(); function run_updates($dbupdate) { global $mes; + foreach($dbupdate as $func => $rmks) { if(function_exists('update_'.$func)) // Legacy Method. { $installed = call_user_func("update_".$func); //?! (LAN_UPDATE == $_POST[$func]) - if(varsettrue($_POST[$func]) && !$installed) + if(varsettrue($_POST['update_core'][$func]) && !$installed) { if(function_exists("update_".$func)) { @@ -117,7 +118,7 @@ function show_updates($dbupdate, $what) else { $updates ++; - $text .= "