From: Jan Schneider Date: Wed, 24 Feb 2010 18:36:06 +0000 (+0100) Subject: Link logo to configured log url. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bee694bef0f0c0f538470d3fd0e2e26aa4e09d7c;p=horde.git Link logo to configured log url. --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index ec4dfd40b..c5c0226ba 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -2604,7 +2604,11 @@ KronolithCore = { switch (id) { case 'kronolithLogo': - this.go(Kronolith.conf.login_view); + if (Kronolith.conf.URI_HOME) { + this.redirect(Kronolith.conf.URI_HOME); + } else { + this.go(Kronolith.conf.login_view); + } e.stop(); return; diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 19241e9f5..83872350c 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -190,6 +190,7 @@ class Kronolith 'URI_CALENDAR_EXPORT' => (string)Horde::url('data.php', true)->add(array('actionID' => 'export', 'all_events' => 1, 'exportID' => Horde_Data::EXPORT_ICALENDAR, 'exportCal' => '')), 'URI_EVENT_EXPORT' => str_replace(array('%23', '%7B', '%7D'), array('#', '{', '}'), Horde::url('event.php', true)->add(array('view' => 'ExportEvent', 'eventID' => '#{id}', 'calendar' => '#{calendar}', 'type' => '#{type}'))), 'SESSION_ID' => defined('SID') ? SID : '', + 'user' => Horde_Auth::getAuth(), 'prefs_url' => str_replace('&', '&', Horde::getServiceLink('options', 'kronolith')), 'app_urls' => $app_urls, @@ -223,6 +224,9 @@ class Kronolith '360' => _("6 hours"), '1440' => _("1 day")), ); + if (!empty($GLOBALS['conf']['logo']['link'])) { + $code['conf']['URI_HOME'] = $GLOBALS['conf']['logo']['link']; + } if ($has_tasks) { $code['conf']['tasks'] = $registry->tasks->ajaxDefaults();