diff --git a/includes/Comment.class.php b/includes/Comment.class.php index 40c7ca2..00dcbd3 100644 --- a/includes/Comment.class.php +++ b/includes/Comment.class.php @@ -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 \r\n"; +// $comment_url = $znilpageTitle; $comment_url = "http://znil.net/index.php?title={$znilpageTitle}#comment-{$commentId}"; +// $comment_url = "getFullURL() . "\">" . $title->getFullURL() . ""; $comment_mailtext = $commentDate . "

" . $comment_url . "


" . "IP: " . $_SERVER['REMOTE_ADDR'] . "
" . "DNS: " . gethostbyaddr($_SERVER['REMOTE_ADDR']) ."

" . $kok_username . "

" . $text; $comment_mailtext = nl2br($comment_mailtext); mail($comment_mailto, $comment_mailsubject, $comment_mailtext, $comment_mailfrom);