diff --git a/admin/inc/class.soapplications.inc.php b/admin/inc/class.soapplications.inc.php index f0a0f69680..da6ea945be 100644 --- a/admin/inc/class.soapplications.inc.php +++ b/admin/inc/class.soapplications.inc.php @@ -28,7 +28,7 @@ $this->db->next_record(); $app_info = array( $this->db->f('app_name'), - $this->db->f('app_title'), + $this->db->f('app_name'), $this->db->f('app_enabled'), $this->db->f('app_name'), $this->db->f('app_order') @@ -44,7 +44,7 @@ while ($this->db->next_record()) { $apps[$this->db->f('app_name')] = array( - 'title' => $this->db->f('app_title'), + 'title' => str_replace('- ','-',ucwords(str_replace('_','- ',$this->db->f('app_name')))), 'name' => $this->db->f('app_name'), 'status' => $this->db->f('app_enabled') ); @@ -63,8 +63,8 @@ $this->db->query($sql,__LINE__,__FILE__); $this->db->next_record(); $app_id = $this->db->f(0) + 1; - $sql = 'INSERT INTO phpgw_applications (app_id,app_name,app_title,app_enabled,app_order) VALUES(' - . $app_id . ",'" . addslashes($data['n_app_name']) . "','" . addslashes($data['n_app_title']) . "','" + $sql = 'INSERT INTO phpgw_applications (app_id,app_name,app_enabled,app_order) VALUES(' + . $app_id . ",'" . addslashes($data['n_app_name']) . "','" . $data['n_app_status'] . "','" . $data['app_order'] . "')"; $this->db->query($sql,__LINE__,__FILE__); @@ -74,8 +74,8 @@ function save($data) { $sql = "UPDATE phpgw_applications SET app_name='" . addslashes($data['n_app_name']) . "'," - . "app_title='" . addslashes($data['n_app_title']) . "', app_enabled='" - . $data['n_app_status'] . "',app_order='" . $data['app_order'] . "' WHERE app_name='" . $data['old_app_name'] . "'"; + . "app_enabled='" . $data['n_app_status'] . "',app_order='" . $data['app_order'] + . "' WHERE app_name='" . $data['old_app_name'] . "'"; $this->db->query($sql,__LINE__,__FILE__); return True; diff --git a/admin/inc/class.uiapplications.inc.php b/admin/inc/class.uiapplications.inc.php index 1d47bb2b65..cd033d8965 100644 --- a/admin/inc/class.uiapplications.inc.php +++ b/admin/inc/class.uiapplications.inc.php @@ -181,16 +181,11 @@ { $error[$totalerrors++] = lang('You must enter an application name.'); } - if (!$n_app_title) - { - $error[$totalerrors++] = lang('You must enter an application title.'); - } if (!$totalerrors) { $this->bo->add(array( 'n_app_name' => $n_app_name, - 'n_app_title' => $n_app_title, 'n_app_status' => $n_app_status, 'app_order' => $app_order )); @@ -218,7 +213,6 @@ $GLOBALS['phpgw']->template->set_var('form_action',$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.add')); $this->display_row(lang('application name'),''); - $this->display_row(lang('application title'),''); if(!isset($n_app_status)) { @@ -257,7 +251,6 @@ $old_app_name = $GLOBALS['HTTP_POST_VARS']['old_app_name']; $app_order = $GLOBALS['HTTP_POST_VARS']['app_order'] ? $GLOBALS['HTTP_POST_VARS']['app_order'] : 0; $n_app_name = chop($GLOBALS['HTTP_POST_VARS']['n_app_name']); - $n_app_title = chop($GLOBALS['HTTP_POST_VARS']['n_app_title']); $n_app_status = $GLOBALS['HTTP_POST_VARS']['n_app_status']; if (! $n_app_name) @@ -282,7 +275,6 @@ { $this->bo->save(array( 'n_app_name' => $n_app_name, - 'n_app_title' => $n_app_title, 'n_app_status' => $n_app_status, 'app_order' => $app_order, 'old_app_name' => $old_app_name @@ -312,7 +304,6 @@ $GLOBALS['phpgw']->template->set_var('form_action',$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.edit')); $this->display_row(lang('application name'),''); - $this->display_row(lang('application title'),''); $GLOBALS['phpgw']->template->set_var('lang_status',lang('Status')); $GLOBALS['phpgw']->template->set_var('lang_submit_button',lang('edit')); diff --git a/admin/inc/hook_after_navbar.inc.php b/admin/inc/hook_after_navbar.inc.php index a0595dcd98..4dced0cae9 100644 --- a/admin/inc/hook_after_navbar.inc.php +++ b/admin/inc/hook_after_navbar.inc.php @@ -36,7 +36,7 @@ include($_versionfile); /* echo '
' . $_versionfile . ','; */ $_file_version = $setup_info[$app_name]['version']; - $_app_title = $setup_info[$app_name]['title']; + $_app_title = str_replace('- ','-',ucwords(str_replace('_','- ',$setup_info[$app_name]['name']))), unset($setup_info); /* echo '
' . $app_name . ',' . $_db_version . ',' . $_file_version; */ diff --git a/setup/ldapimport.php b/setup/ldapimport.php index f5da3c0914..d236790920 100644 --- a/setup/ldapimport.php +++ b/setup/ldapimport.php @@ -128,10 +128,10 @@ $group_info = array(); } - $GLOBALS['phpgw_setup']->db->query("SELECT app_name,app_title FROM phpgw_applications WHERE app_enabled!='0' AND app_enabled!='3' ORDER BY app_title",__LINE__,__FILE__); + $GLOBALS['phpgw_setup']->db->query("SELECT app_name FROM phpgw_applications WHERE app_enabled!='0' AND app_enabled!='3' ORDER BY app_title",__LINE__,__FILE__); while ($GLOBALS['phpgw_setup']->db->next_record()) { - $apps[$GLOBALS['phpgw_setup']->db->f('app_name')] = $GLOBALS['phpgw_setup']->db->f('app_title'); + $apps[$GLOBALS['phpgw_setup']->db->f('app_name')] = lang($GLOBALS['phpgw_setup']->db->f('app_name')); } if ($cancel) diff --git a/setup/ldapmodify.php b/setup/ldapmodify.php index 0fbb220437..8749690231 100644 --- a/setup/ldapmodify.php +++ b/setup/ldapmodify.php @@ -110,10 +110,10 @@ $group_info = array(); } - $GLOBALS['phpgw_setup']->db->query("SELECT app_name,app_title FROM phpgw_applications WHERE app_enabled!='0' AND app_enabled!='3' ORDER BY app_title",__LINE__,__FILE__); + $GLOBALS['phpgw_setup']->db->query("SELECT app_name FROM phpgw_applications WHERE app_enabled!='0' AND app_enabled!='3' ORDER BY app_title",__LINE__,__FILE__); while ($GLOBALS['phpgw_setup']->db->next_record()) { - $apps[$GLOBALS['phpgw_setup']->db->f('app_name')] = $GLOBALS['phpgw_setup']->db->f('app_title'); + $apps[$GLOBALS['phpgw_setup']->db->f('app_name')] = lang($GLOBALS['phpgw_setup']->db->f('app_name')); } if ($cancel)