diff --git a/ext/arrowkey_navigation/main.php b/ext/arrowkey_navigation/main.php index 657f0891..36252a08 100644 --- a/ext/arrowkey_navigation/main.php +++ b/ext/arrowkey_navigation/main.php @@ -24,6 +24,13 @@ class arrowkey_navigation extends Extension { $next_url = make_http(make_link("post/list/".$pageinfo["next"])); $this->add_arrowkeys_code($prev_url, $next_url); } + + // for random_list extension + else if ($event->page_matches("random")) { + $prev_url = make_http(make_link("random")); + $next_url = make_http(make_link("random")); + $this->add_arrowkeys_code($prev_url, $next_url); + } } # adds the javascript to the page with the given urls diff --git a/ext/random_list/main.php b/ext/random_list/main.php index 7abdac11..b037d464 100644 --- a/ext/random_list/main.php +++ b/ext/random_list/main.php @@ -14,7 +14,7 @@ class RandomList extends Extension { if($event->page_matches("random")) { // set vars - $images_per_page = $config->get_int("index_images") / 2; + $images_per_page = $config->get_int("random_images_list_count", 12); $random_images = array(); $random_html = "Refresh the page to view more images
";