forked from Cavemanon/cavepaintings
port page_matches from score to trunk
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1028 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
@@ -17,7 +17,7 @@ class Featured implements Extension {
|
||||
$config->set_default_int('featured_id', 0);
|
||||
}
|
||||
|
||||
if(($event instanceof PageRequestEvent) && ($event->page_name == "set_feature")) {
|
||||
if(($event instanceof PageRequestEvent) && $event->page_matches("set_feature")) {
|
||||
global $user;
|
||||
if($user->is_admin() && isset($_POST['image_id'])) {
|
||||
global $config;
|
||||
|
Reference in New Issue
Block a user