compat with stable
git-svn-id: file:///home/shish/svn/shimmie2/trunk@518 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
bd1ba12cfc
commit
af6f7f00fc
@ -25,8 +25,9 @@ class Ratings extends Extension {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# TODO: ImageEditorBuildingEvent
|
# TODO: ImageEditorBuildingEvent
|
||||||
|
global $user; // compat with stable
|
||||||
if(is_a($event, 'PageRequestEvent') && $event->page_name == "rating" &&
|
if(is_a($event, 'PageRequestEvent') && $event->page_name == "rating" &&
|
||||||
$event->get_arg(0) == "set" && $event->user->is_admin() &&
|
$event->get_arg(0) == "set" && $user->is_admin() &&
|
||||||
isset($_POST['rating']) && isset($_POST['image_id'])) {
|
isset($_POST['rating']) && isset($_POST['image_id'])) {
|
||||||
$this->set_rating($_POST['image_id'], $_POST['rating']);
|
$this->set_rating($_POST['image_id'], $_POST['rating']);
|
||||||
$event->page->set_mode("redirect");
|
$event->page->set_mode("redirect");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user