diff --git a/timesheet/inc/class.timesheet_hooks.inc.php b/timesheet/inc/class.timesheet_hooks.inc.php index 995511d13e..b0a8f6a3a2 100644 --- a/timesheet/inc/class.timesheet_hooks.inc.php +++ b/timesheet/inc/class.timesheet_hooks.inc.php @@ -5,7 +5,7 @@ * @link http://www.egroupware.org * @author Ralf Becker * @package timesheet - * @copyright (c) 2005-13 by Ralf Becker + * @copyright (c) 2005-16 by Ralf Becker * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @version $Id$ */ @@ -36,6 +36,8 @@ class timesheet_hooks */ static function search_link($location) { + unset($location); // not used, but required by function signature + return array( 'query' => TIMESHEET_APP.'.timesheet_bo.link_query', 'title' => TIMESHEET_APP.'.timesheet_bo.link_title', @@ -123,7 +125,7 @@ class timesheet_hooks if ($GLOBALS['egw_info']['user']['apps']['admin']) { $file = Array( - 'Site Configuration' => egw::link('/index.php','menuaction=admin.uiconfig.index&appname=' . $appname), + 'Site Configuration' => egw::link('/index.php','menuaction=admin.admin_config.index&appname=' . $appname,'&ajax=true'), 'Custom fields' => egw::link('/index.php','menuaction=admin.customfields.index&appname='.$appname.'&use_private=1'), 'Global Categories' => egw::link('/index.php',array( 'menuaction' => 'admin.admin_categories.index', @@ -209,10 +211,11 @@ class timesheet_hooks } catch (Exception $e) { + unset($e); // permission error continue; } - if ($title = $definition->get_title()) + if (($title = $definition->get_title())) { $options[$title] = $title; } @@ -242,6 +245,8 @@ class timesheet_hooks */ public static function acl_rights($params) { + unset($params); // not used, but required by function signature + return array( acl::READ => 'read', acl::EDIT => 'edit', @@ -257,6 +262,8 @@ class timesheet_hooks */ public static function categories($data) { + unset($data); // not used, but required by function signature + return true; } } diff --git a/timesheet/templates/default/config.tpl b/timesheet/templates/default/config.tpl deleted file mode 100644 index aa921eae63..0000000000 --- a/timesheet/templates/default/config.tpl +++ /dev/null @@ -1,69 +0,0 @@ - -

{error}

-
-{hidden_vars} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {title}
{lang_ProjectManager_integration}: - -
{lang_Mode}: - -
{lang_Show_a_quantity_sum_(eg._to_sum_up_negative_overtime)}: - -
 {lang_History_logging}
 {lang_Prevent_deleting} - -
-  -
- - -
-
- diff --git a/timesheet/templates/default/config.xet b/timesheet/templates/default/config.xet new file mode 100644 index 0000000000..e9b0606972 --- /dev/null +++ b/timesheet/templates/default/config.xet @@ -0,0 +1,48 @@ + + + + + +