guest [128.100.48.224]  Thu, 07 Feb 2013 14:58:48 +0000

Modified page: http://wiki.horde.org/H5DisplayUserName
New Revision:  3
Change log:  Add email address

@@ -24,6 +24,13 @@
 </code>
 **To:**
 <code type="php">
         /* Sub bar. */
- $this->date = strftime($GLOBALS['prefs']->getValue('date_format')) . ' - ' . $GLOBALS['injector']->getInstance('Horde_Core_Factory_Identity')->create()->getName(); + $this->date = strftime($GLOBALS['prefs']->getValue('date_format')) . ' - ' + . $GLOBALS['injector']->getInstance('Horde_Core_Factory_Identity')->create()->getName();
+</code>
+To display user name and email address:
+<code type="php">
+        /* Sub bar. */
+ $this->date = strftime($GLOBALS['prefs']->getValue('date_format')) . ' - ' + . htmlspecialchars($GLOBALS['injector']->getInstance('Horde_Core_Factory_Identity')->create()->getDefaultFromAddress(true));
 </code>

--
commits mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]

Reply via email to