send a tag_set event when tags are set, and correct parentheses when creating a block
git-svn-id: file:///home/shish/svn/shimmie2/trunk@202 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
a625fcd787
commit
fcfc7e5767
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ class TagEdit extends Extension {
|
|||
global $database;
|
||||
$i_image_id = int_escape($_POST['image_id']);
|
||||
$query = $_POST['query'];
|
||||
$database->set_tags($i_image_id, $_POST['tags']);
|
||||
send_event(new TagSetEvent($i_image_id, $_POST['tags']));
|
||||
$page->set_mode("redirect");
|
||||
$page->set_redirect(make_link("post/view/$i_image_id", $query));
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ class TagEdit extends Extension {
|
|||
|
||||
if(is_a($event, 'DisplayingImageEvent')) {
|
||||
global $page;
|
||||
$page->add_block(new Block(null, $this->build_tag_editor($event->image)), "main", 5);
|
||||
$page->add_block(new Block(null, $this->build_tag_editor($event->image), "main", 5));
|
||||
}
|
||||
|
||||
if(is_a($event, 'TagSetEvent')) {
|
||||
|
|
Reference in a new issue