Don't show map search link if maps are disabled.
authorJan Schneider <jan@horde.org>
Wed, 13 Jan 2010 16:18:19 +0000 (17:18 +0100)
committerJan Schneider <jan@horde.org>
Thu, 14 Jan 2010 11:25:48 +0000 (12:25 +0100)
kronolith/templates/index/edit.inc

index a833328..7fcb33d 100644 (file)
@@ -20,7 +20,9 @@
   <td>
     <label for="kronolithEventLocation"><?php echo _("Location") ?>:</label><br />
     <input type="text" name="location" id="kronolithEventLocation" size="40" />
+    <?php if ($GLOBALS['conf']['maps']['driver']):?>
     &middot; <span><a class="kronolithEventGeo" href="#"><?php echo _("Find in Maps") ?></a></span>
+    <?php endif; ?>
   </td>
 </tr></tbody></table>
 </div>
@@ -56,9 +58,9 @@
     <li><a href="#" class="kronolithTabLink" id="kronolithEventLinkUrl"><?php echo _("URL") ?></a></li>
     <li><a href="#" class="kronolithTabLink" id="kronolithEventLinkAttendees"><?php echo _("Attendees") ?></a></li>
     <li><a href="#" class="kronolithTabLink" id="kronolithEventLinkTags"><?php echo _("Tags") ?></a></li>
-<?php if ($GLOBALS['conf']['maps']['driver']):?>
+<?php if ($GLOBALS['conf']['maps']['driver']): ?>
     <li><a href="#" class="kronolithTabLink" id="kronolithEventLinkMap"><?php echo _("Map") ?></a></li>
-<?php endif;?>
+<?php endif; ?>
   </ul>
 </div>
 <br class="clear" />