Revert "Merge tag 'v2.10.6'"

This reverts commit 122ea4ab9e, reversing
changes made to c54a11e250.
This commit is contained in:
2024-02-16 23:06:09 -06:00
parent 122ea4ab9e
commit 6c08ee9675
521 changed files with 12363 additions and 14503 deletions

View File

@@ -6,7 +6,7 @@ namespace Shimmie2;
class RSSComments extends Extension
{
public function onPostListBuilding(PostListBuildingEvent $event): void
public function onPostListBuilding(PostListBuildingEvent $event)
{
global $config, $page;
$title = $config->get_string(SetupConfig::TITLE);
@@ -15,7 +15,7 @@ class RSSComments extends Extension
"title=\"$title - Comments\" href=\"".make_link("rss/comments")."\" />");
}
public function onPageRequest(PageRequestEvent $event): void
public function onPageRequest(PageRequestEvent $event)
{
global $config, $database, $page;
if ($event->page_matches("rss/comments")) {
@@ -40,7 +40,7 @@ class RSSComments extends Extension
$comment_id = $comment['comment_id'];
$link = make_http(make_link("post/view/$image_id"));
$owner = html_escape($comment['user_name']);
$posted = date(DATE_RSS, strtotime_ex($comment['posted']));
$posted = date(DATE_RSS, strtotime($comment['posted']));
$comment = html_escape($comment['comment']);
$content = html_escape("$owner: $comment");
@@ -75,9 +75,9 @@ EOD;
}
}
public function onPageSubNavBuilding(PageSubNavBuildingEvent $event): void
public function onPageSubNavBuilding(PageSubNavBuildingEvent $event)
{
if ($event->parent == "comment") {
if ($event->parent=="comment") {
$event->add_nav_link("comment_rss", new Link('rss/comments'), "Feed");
}
}