diff --git a/contrib/random_image/main.php b/contrib/random_image/main.php index a58e82df..514fcd8c 100644 --- a/contrib/random_image/main.php +++ b/contrib/random_image/main.php @@ -10,7 +10,7 @@ class RandomImage implements Extension { public function receive_event(Event $event) { if(($event instanceof PageRequestEvent) && $event->page_matches("random_image")) { - global $database; + global $config; global $database; if($event->count_args() == 1) {