svn: /pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ ReleaseFileBrowser.tpl.php

[email protected] (Michael Gauthier)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
gauthierm                                Tue, 13 Jul 2010 12:45:00 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=301233

Log:
Set a proper page title.

Changed paths:
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ReleaseFileBrowser.tpl.php

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ReleaseFileBrowser.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ReleaseFileBrowser.tpl.php	2010-07-13 12:23:35 UTC (rev 301232)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ReleaseFileBrowser.tpl.php	2010-07-13 12:45:00 UTC (rev 301233)
@@ -11,8 +11,15 @@
     . $releaseRoot;

 // Set the page title
-$parent->context->page_title = 'File Content - '
-    . PEAR2\SimpleChannelFrontend\Main::$title;
+if (isset($context->options['file'])) {
+    $parent->context->page_title = $context->options['file'] . ' - '
+        . $releaseRoot . ' - '
+        . PEAR2\SimpleChannelFrontend\Main::$title;
+} else {
+    $parent->context->page_title = 'Files - '
+        . $releaseRoot . ' - '
+        . PEAR2\SimpleChannelFrontend\Main::$title;
+}

 ?>
 <div class="file-title pearbox">
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.