summaryrefslogtreecommitdiff
path: root/modules/comment/helpers/comment_event.php
diff options
context:
space:
mode:
authorNathan Kinkade <nkinkade@nkinka.de>2010-01-26 16:33:02 +0000
committerNathan Kinkade <nkinkade@nkinka.de>2010-01-26 16:33:02 +0000
commita6f794c20dc3592bcaef17c622413c1b670a20d8 (patch)
tree8819f4d9108b4b98fc1d59a3fb23d28cdfba9555 /modules/comment/helpers/comment_event.php
parentb21e7be11a0abe57790ec2a2fcca1874632fed8c (diff)
parentaccd00464e2d7e1d1fd0e24e1ee583a7baa73611 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/comment/helpers/comment_event.php')
-rw-r--r--modules/comment/helpers/comment_event.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/comment/helpers/comment_event.php b/modules/comment/helpers/comment_event.php
index bd336cda..12e8d73f 100644
--- a/modules/comment/helpers/comment_event.php
+++ b/modules/comment/helpers/comment_event.php
@@ -76,4 +76,16 @@ class comment_event_Core {
$data[] = $row->text;
}
}
+
+ static function show_user_profile($data) {
+ $view = new View("user_profile_comments.html");
+ $view->comments = ORM::factory("comment")
+ ->order_by("created", "DESC")
+ ->where("state", "=", "published")
+ ->where("author_id", "=", $data->user->id)
+ ->find_all();
+ if ($view->comments->count()) {
+ $data->content[] = (object)array("title" => t("Comments"), "view" => $view);
+ }
+ }
}