forked from Cavemanon/cavepaintings
PHP4 is dead \o/ \o/ \o/ (Part 1, make use of instanceof)
git-svn-id: file:///home/shish/svn/shimmie2/trunk@994 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
|
||||
class RandomImage extends Extension {
|
||||
public function receive_event($event) {
|
||||
if(is_a($event, 'PageRequestEvent') && ($event->page_name == "random_image")) {
|
||||
if(($event instanceof PageRequestEvent) && ($event->page_name == "random_image")) {
|
||||
global $database;
|
||||
|
||||
if($event->count_args() == 1) {
|
||||
|
Reference in New Issue
Block a user