[dev] [PATCH] turba/templates/menu.inc

Marc Jauvin marc at r4l.com
Wed Oct 12 12:21:38 PDT 2005


The following patch emulates Kronolith by NOT showing the addressbook 
selector if there is only one addressbook.


Index: turba/templates/menu.inc
===================================================================
RCS file: /repository/turba/templates/menu.inc,v
retrieving revision 1.7
diff -u -r1.7 menu.inc
--- turba/templates/menu.inc    8 Oct 2005 23:22:26 -0000       1.7
+++ turba/templates/menu.inc    12 Oct 2005 19:20:24 -0000
@@ -1,7 +1,7 @@
<form name="directory_list" action="browse.php" method="get">
<?php echo Util::formInput() ?>
<div id="menu">
-<?php if (!empty($browse_source_options)): ?>
+<?php if (!empty($browse_source_options) && 
count($browse_source_options)>1): ?>
  <span class="rightFloat">
   <select name="source" 
onchange="document.directory_list.submit();"><?php echo 
$browse_source_options ?></select>
   <noscript><input class="button" type="submit" value="<?php echo 
_("Browse") ?>" /></noscript>


-- 
Marc Jauvin
http://register4less.com
514-905-6500


More information about the dev mailing list