[dokuwiki] Patch: give people option to display homepage on diffs, etc...

  • From: "Getz, Robin" <robin.getz@xxxxxxxxxx>
  • To: "dokuwiki@xxxxxxxxxxxxx" <dokuwiki@xxxxxxxxxxxxx>
  • Date: Thu, 3 May 2012 15:33:52 -0400

Does this make sense to anyone else?


--- a/inc/common.php
+++ b/inc/common.php
@@ -1416,6 +1416,7 @@ function editorinfo($username){
         case 'username':
         case 'email':
         case 'email_link':
+       case 'home':
             if($auth) $info = $auth->getUserData($username);
             break;
         default:
@@ -1431,6 +1432,9 @@ function editorinfo($username){
             case 'email_link':
                 $mail=obfuscate($info['mail']);
                 return '<a href="mailto:'.$mail.'">'.$mail.'</a>';
+            case 'home':
+                if(isset($conf['showuser']['home']))
+                    return '<a 
href="'.$conf['showuser']['home'].$username.'/">'.hsc($username).'</a>';
             default:
                 return hsc($username);
         }

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: