From d91090e80623d50347a6c18c12ae0392c6bc8b29 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 26 Mar 2017 17:17:33 +0200 Subject: [PATCH] Admin/Screenshots * do not limit screenshot sources Search * display floored maps --- includes/community.class.php | 2 +- pages/search.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/community.class.php b/includes/community.class.php index 7d0b47ca..03388f9a 100644 --- a/includes/community.class.php +++ b/includes/community.class.php @@ -333,7 +333,7 @@ class CommunityContent if (!$ids) continue; - $tClass = new Util::$typeClasses[$t](array(['id', $ids])); + $tClass = new Util::$typeClasses[$t](array(['id', $ids], CFG_SQL_LIMIT_NONE)); foreach ($pages as &$p) if ($p['type'] == $t) if ($tClass->getEntry($p['typeId'])) diff --git a/pages/search.php b/pages/search.php index 18d3323d..6bf38065 100644 --- a/pages/search.php +++ b/pages/search.php @@ -193,6 +193,8 @@ class SearchPage extends GenericPage if ($this->mode == CACHE_TYPE_NONE) // search is invalid return; + $this->addJS('?data=zones&locale='.User::$localeId.'&t='.$_SESSION['dataKey']); + $this->performSearch(); }