mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Make comment recent changes dislpay more robust
This commit is contained in:
parent
f6c9ac075a
commit
fa1f03f38a
3 changed files with 3 additions and 3 deletions
|
@ -2908,7 +2908,7 @@ function render_recent_change($rchange)
|
|||
break;
|
||||
case "comment":
|
||||
$resultClasses[] = "new-comment";
|
||||
$result .= "<a href='?page=$rchange->page#$rchange->comment_id'>$pageDisplayHtml</a>";
|
||||
$result .= "<a href='?page=$rchange->page#comment-" . (!empty($rchange->comment_id) ? "$rchange->comment_id" : "unknown_comment_id") . "'>$pageDisplayHtml</a> $editorDisplayHtml";
|
||||
}
|
||||
|
||||
$resultAttributes = " " . (count($resultClasses) > 0 ? "class='" . implode(" ", $resultClasses) . "'" : "");
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Adds recent changes. Access through the 'recent-changes' action.",
|
||||
"id": "feature-recent-changes",
|
||||
"lastupdate": 1495289861,
|
||||
"lastupdate": 1495291194,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
|
|
@ -243,7 +243,7 @@ function render_recent_change($rchange)
|
|||
break;
|
||||
case "comment":
|
||||
$resultClasses[] = "new-comment";
|
||||
$result .= "<a href='?page=$rchange->page#$rchange->comment_id'>$pageDisplayHtml</a>";
|
||||
$result .= "<a href='?page=$rchange->page#comment-" . (!empty($rchange->comment_id) ? "$rchange->comment_id" : "unknown_comment_id") . "'>$pageDisplayHtml</a> $editorDisplayHtml";
|
||||
}
|
||||
|
||||
$resultAttributes = " " . (count($resultClasses) > 0 ? "class='" . implode(" ", $resultClasses) . "'" : "");
|
||||
|
|
Loading…
Reference in a new issue