Link in Email funktioniert nun wieder korrekt
This commit is contained in:
parent
11d9457338
commit
93fd6877da
@ -378,13 +378,16 @@ class Comment extends ContextSource {
|
||||
|
||||
Hooks::run( 'Comment::add', array( $comment, $commentId, $comment->page->id ) );
|
||||
/* ## START Kommentar auch per Email versenden ## 11/2014 Bernhard Linz */
|
||||
$znilpageTitle = "";
|
||||
//$title = Title::makeTitle( NS_USER, $this->username );
|
||||
$znilpageTitle = Title::newFromID( $comment->page->id );
|
||||
$comment_mailto = "root@linz.email";
|
||||
$comment_mailsubject = "Neuer Kommentar von: " . $kok_username . " - IP: " . $_SERVER['REMOTE_ADDR'] . " - DNS: " . gethostbyaddr($_SERVER['REMOTE_ADDR']) ;
|
||||
$comment_mailfrom = "MIME-Version: 1.0\r\n";
|
||||
$comment_mailfrom .= "Content-type: text/html; charset=utf-8\r\n";
|
||||
$comment_mailfrom .= "From: znil.net Kommentare <root@linz.email>\r\n";
|
||||
// $comment_url = $znilpageTitle;
|
||||
$comment_url = "<a href=\"http://znil.net/index.php?title={$znilpageTitle}#comment-{$commentId}\">http://znil.net/index.php?title={$znilpageTitle}#comment-{$commentId}</a>";
|
||||
// $comment_url = "<a href=\"" . $title->getFullURL() . "\">" . $title->getFullURL() . "</a>";
|
||||
$comment_mailtext = $commentDate . "<br><br>" . $comment_url . "<br><br><hr>" . "IP: " . $_SERVER['REMOTE_ADDR'] . "<br>" . "DNS: " . gethostbyaddr($_SERVER['REMOTE_ADDR']) ."<br><br>" . $kok_username . "<br><br>" . $text;
|
||||
$comment_mailtext = nl2br($comment_mailtext);
|
||||
mail($comment_mailto, $comment_mailsubject, $comment_mailtext, $comment_mailfrom);
|
||||
|
Loading…
Reference in New Issue
Block a user