<?php
-require_once 'MTrack/Wiki.php';
+//require_once 'MTrack/Wiki.php';
class MTrackSCMEvent
{
function changelogOneToHtml()
{
list($one) = explode("\n", $this->changelog);
- return MTrack_Wiki::format_to_oneliner(rtrim($one, " \r\n"));
+ return htmlspecialchars($one);
}
function changelogToHtml()
{
- return MTrack_Wiki::format_to_html($this->changelog);
+ return htmlspecialchars($this->changelog);
}
// get rid of this..
function changeByToHtml($linkHandler)
/**
* return the changeby as a RFC address..
*/
- function changebyToRFC()
+
+ function changebyToEmail()
{
require_once 'Mail/RFC822.php';
$m = new Mail_RFC822;
- $m->parseAddressList($this->changeby);
- return $m;
-
+ $addr = $m->parseAddressList($this->changeby);
+
+ return $addr[0]->mailbox.'@'.$addr[0]->host;
}
}
\ No newline at end of file