[dev] [PATCH] accounts title

Rob Lineweaver rlineweaver at harrisonburg.k12.va.us
Wed Sep 24 06:54:53 PDT 2003


Greetings,

The attached patch to CVS head fixes the display of the page title for the
accounts module.

Thanks,

Rob Lineweaver
Network Administrator
Harrisonburg City Public Schools

--
Keyboard not found!
Press F1 to enter Setup

----------
Index: accounts/main.php
===================================================================
RCS file: /repository/accounts/main.php,v
retrieving revision 1.11
diff -u -r1.11 main.php
--- accounts/main.php	22 May 2003 20:23:28 -0000	1.11
+++ accounts/main.php	24 Sep 2003 13:46:15 -0000
@@ -22,6 +22,7 @@
                         'horde.error');
 }

+$title = _("My Account Information");
 require ACCOUNTS_TEMPLATES . '/common-header.inc';
 Accounts::menu();
 require ACCOUNTS_TEMPLATES . '/main/main.inc';
Index: accounts/templates/common-footer.inc
===================================================================
RCS file: /repository/accounts/templates/common-footer.inc,v
retrieving revision 1.2
diff -u -r1.2 common-footer.inc
--- accounts/templates/common-footer.inc	15 Jun 2002 05:03:42 -0000	1.2
+++ accounts/templates/common-footer.inc	24 Sep 2003 13:46:16 -0000
@@ -2,7 +2,7 @@
 <?php if (!empty($title)): ?>
 <script language="JavaScript" type="text/javascript">
 <!--
-if (parent.frames.horde_main) parent.document.title = '<?php echo
addslashes($registry->getName() . ' :: ' . $title) ?>';
+if (parent.frames.horde_main) parent.document.title = '<?php echo
addslashes($registry->getParam('name') . ' :: ' . $title) ?>';
 //-->
 </script>
 <?php endif; ?>


More information about the dev mailing list