remove a whole load of event->user variables that weren't used -- things should be using global user

This commit is contained in:
Shish
2012-08-18 19:45:39 +01:00
parent f3aad43fa3
commit 7dd929e5a8
10 changed files with 23 additions and 25 deletions

View File

@@ -20,9 +20,10 @@ class LiveFeed extends Extension {
}
public function onImageAddition($event) {
global $user;
$this->msg(
make_http(make_link("post/view/".$event->image->id))." - ".
"new post by ".$event->user->name
"new post by ".$user->name
);
}
@@ -34,9 +35,10 @@ class LiveFeed extends Extension {
}
public function onCommentPosting($event) {
global $user;
$this->msg(
make_http(make_link("post/view/".$event->image_id))." - ".
$event->user->name . ": " . str_replace("\n", " ", $event->comment)
$user->name . ": " . str_replace("\n", " ", $event->comment)
);
}