[commits] [Wiki] changed: H5DisplayUserName

Wiki Guest wikiguest at horde.org
Thu Feb 7 14:58:49 UTC 2013


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>



More information about the commits mailing list