From b769c8e0b964acde4ff044ff8fcbca0eda5fb684 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 9 Nov 2010 13:52:49 -0500 Subject: [PATCH] Make page titles shorter and more focused - SEO, and more useful information in the first part of the browser tab title --- chora/browsedir.php | 2 +- chora/browsefile.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chora/browsedir.php b/chora/browsedir.php index a20190685..b896cee8e 100644 --- a/chora/browsedir.php +++ b/chora/browsedir.php @@ -36,7 +36,7 @@ try { /* Decide what title to display. */ $title = ($where == '') ? $conf['options']['introTitle'] - : sprintf(_("Source Directory of /%s"), $where); + : "/$where"; $extraLink = $VC->hasFeature('deleted') ? Horde::widget(Chora::url('browsedir', $where . '/', $branchArgs + array('sa' => ($acts['sa'] ? 0 : 1))), $acts['sa'] ? _("Hide Deleted Files") : _("Show Deleted Files"), 'widget', '', '', $acts['sa'] ? _("Hide _Deleted Files") : _("Show _Deleted Files")) diff --git a/chora/browsefile.php b/chora/browsefile.php index 0748e58c2..d2b6fde42 100644 --- a/chora/browsefile.php +++ b/chora/browsefile.php @@ -27,7 +27,7 @@ try { Chora::fatal($e); } -$title = sprintf(_("Revisions for %s"), $where); +$title = $where; $extraLink = Chora::getFileViews($where, 'browsefile'); $logs = $fl->queryLogs(); -- 2.11.0