diff --git a/modules/mod_related_items/mod_related_items.xml b/modules/mod_related_items/mod_related_items.xml index 676a49b1f51ba..ba567538a83a0 100644 --- a/modules/mod_related_items/mod_related_items.xml +++ b/modules/mod_related_items/mod_related_items.xml @@ -29,6 +29,7 @@ description="MOD_RELATED_FIELD_SHOWDATE_DESC" class="btn-group btn-group-yesno" default="0" + filter="integer" > @@ -40,6 +41,7 @@ label="MOD_RELATED_FIELD_MAX_LABEL" description="MOD_RELATED_FIELD_MAX_DESC" default="5" + filter="integer" />
@@ -52,7 +54,7 @@ @@ -75,6 +78,7 @@ label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC" default="900" + filter="integer" />
diff --git a/modules/mod_search/mod_search.xml b/modules/mod_search/mod_search.xml index 2e879a3a2a940..f9df2a0521d9a 100644 --- a/modules/mod_search/mod_search.xml +++ b/modules/mod_search/mod_search.xml @@ -34,6 +34,7 @@ type="number" label="MOD_SEARCH_FIELD_BOXWIDTH_LABEL" description="MOD_SEARCH_FIELD_BOXWIDTH_DESC" + filter="integer" /> @@ -75,6 +77,7 @@ label="MOD_SEARCH_FIELD_IMAGEBUTTON_LABEL" description="MOD_SEARCH_FIELD_IMAGEBUTTON_DESC" default="0" + filter="integer" class="btn-group btn-group-yesno" showon="button:1" > @@ -97,6 +100,7 @@ description="MOD_SEARCH_FIELD_OPENSEARCH_DESC" class="btn-group btn-group-yesno" default="1" + filter="integer" > @@ -116,6 +120,7 @@ label="MOD_SEARCH_FIELD_SETITEMID_LABEL" description="MOD_SEARCH_FIELD_SETITEMID_DESC" default="0" + filter="integer" > @@ -142,6 +147,7 @@ label="COM_MODULES_FIELD_CACHING_LABEL" description="COM_MODULES_FIELD_CACHING_DESC" default="1" + filter="integer" > @@ -153,6 +159,7 @@ label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC" default="900" + filter="integer" /> getQuery(true); - $serverinfo = $params->get('serverinfo'); - $siteinfo = $params->get('siteinfo'); - $counter = $params->get('counter'); - $increase = $params->get('increase'); + $serverinfo = $params->get('serverinfo', 0); + $siteinfo = $params->get('siteinfo', 0); + $counter = $params->get('counter', 0); + $increase = $params->get('increase', 0); $i = 0; diff --git a/modules/mod_stats/mod_stats.php b/modules/mod_stats/mod_stats.php index 65313d5d1db9c..01e5c78f71a38 100644 --- a/modules/mod_stats/mod_stats.php +++ b/modules/mod_stats/mod_stats.php @@ -12,8 +12,8 @@ // Include the statistics functions only once JLoader::register('ModStatsHelper', __DIR__ . '/helper.php'); -$serverinfo = $params->get('serverinfo'); -$siteinfo = $params->get('siteinfo'); +$serverinfo = $params->get('serverinfo', 0); +$siteinfo = $params->get('siteinfo', 0); $list = ModStatsHelper::getList($params); $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8'); diff --git a/modules/mod_stats/mod_stats.xml b/modules/mod_stats/mod_stats.xml index 2a1281a5ec5cc..421a33ab9dc93 100644 --- a/modules/mod_stats/mod_stats.xml +++ b/modules/mod_stats/mod_stats.xml @@ -29,6 +29,7 @@ description="MOD_STATS_FIELD_SERVERINFO_DESC" class="btn-group btn-group-yesno" default="0" + filter="integer" > @@ -41,6 +42,7 @@ description="MOD_STATS_FIELD_SITEINFO_DESC" class="btn-group btn-group-yesno" default="0" + filter="integer" > @@ -53,6 +55,7 @@ description="MOD_STATS_FIELD_COUNTER_DESC" class="btn-group btn-group-yesno" default="0" + filter="integer" > @@ -64,6 +67,7 @@ label="MOD_STATS_FIELD_INCREASECOUNTER_LABEL" description="MOD_STATS_FIELD_INCREASECOUNTER_DESC" default="0" + filter="integer" />
@@ -76,7 +80,7 @@ @@ -99,6 +104,7 @@ label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC" default="900" + filter="integer" /> @@ -76,6 +76,7 @@ label="COM_MODULES_FIELD_CACHING_LABEL" description="COM_MODULES_FIELD_CACHING_DESC" default="0" + filter="integer" > diff --git a/modules/mod_tags_popular/helper.php b/modules/mod_tags_popular/helper.php index eb71c6e1e90d7..2de540c2a0807 100644 --- a/modules/mod_tags_popular/helper.php +++ b/modules/mod_tags_popular/helper.php @@ -54,7 +54,7 @@ public static function getList(&$params) $query->where($db->quoteName('t.published') . ' = 1 '); // Filter by Parent Tag - $parentTags = $params->get('parentTag', 0); + $parentTags = $params->get('parentTag', array()); if ($parentTags) { diff --git a/modules/mod_tags_popular/mod_tags_popular.xml b/modules/mod_tags_popular/mod_tags_popular.xml index c60d823e075ff..9207e015b37e5 100644 --- a/modules/mod_tags_popular/mod_tags_popular.xml +++ b/modules/mod_tags_popular/mod_tags_popular.xml @@ -22,12 +22,13 @@
- @@ -99,6 +102,7 @@ description="MOD_TAGS_POPULAR_FIELD_NO_RESULTS_DESC" class="btn-group btn-group-yesno" default="0" + filter="integer" > @@ -149,6 +153,7 @@ label="COM_MODULES_FIELD_CACHING_LABEL" description="COM_MODULES_FIELD_CACHING_DESC" default="1" + filter="integer" > @@ -160,6 +165,7 @@ label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC" default="900" + filter="integer" />
diff --git a/modules/mod_tags_similar/mod_tags_similar.xml b/modules/mod_tags_similar/mod_tags_similar.xml index abcc92a02eb78..8fd8c1268de54 100644 --- a/modules/mod_tags_similar/mod_tags_similar.xml +++ b/modules/mod_tags_similar/mod_tags_similar.xml @@ -28,6 +28,7 @@ label="MOD_TAGS_SIMILAR_MAX_LABEL" description="MOD_TAGS_SIMILAR_MAX_DESC" default="5" + filter="integer" first="1" last="20" step="1" @@ -79,6 +80,7 @@ label="COM_MODULES_FIELD_CACHING_LABEL" description="COM_MODULES_FIELD_CACHING_DESC" default="1" + filter="integer" > @@ -90,6 +92,7 @@ label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC" default="900" + filter="integer" />
diff --git a/modules/mod_users_latest/helper.php b/modules/mod_users_latest/helper.php index 263c297165b0d..144ff78ee03cf 100644 --- a/modules/mod_users_latest/helper.php +++ b/modules/mod_users_latest/helper.php @@ -49,7 +49,7 @@ public static function getUsers($params) ->where('ug.id <> 1'); } - $db->setQuery($query, 0, $params->get('shownumber')); + $db->setQuery($query, 0, $params->get('shownumber', 5)); try { diff --git a/modules/mod_users_latest/mod_users_latest.xml b/modules/mod_users_latest/mod_users_latest.xml index 7299144c3dffe..2304a834217a5 100644 --- a/modules/mod_users_latest/mod_users_latest.xml +++ b/modules/mod_users_latest/mod_users_latest.xml @@ -28,6 +28,7 @@ label="MOD_USERS_LATEST_FIELD_NUMBER_LABEL" description="MOD_USERS_LATEST_FIELD_NUMBER_DESC" default="5" + filter="integer" /> @@ -64,6 +66,7 @@ label="COM_MODULES_FIELD_CACHING_LABEL" description="COM_MODULES_FIELD_CACHING_DESC" default="1" + filter="integer" > @@ -75,6 +78,7 @@ label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC" default="900" + filter="integer" /> @@ -41,6 +42,7 @@ description="MOD_WHOSONLINE_FIELD_FILTER_GROUPS_DESC" class="btn-group btn-group-yesno" default="0" + filter="integer" > @@ -68,6 +70,7 @@ label="COM_MODULES_FIELD_CACHING_LABEL" description="COM_MODULES_FIELD_CACHING_DESC" default="0" + filter="integer" > @@ -78,6 +81,7 @@ label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC" default="900" + filter="integer" /> diff --git a/modules/mod_whosonline/tmpl/default.php b/modules/mod_whosonline/tmpl/default.php index 41bb90bfa30bf..c2756b410f269 100644 --- a/modules/mod_whosonline/tmpl/default.php +++ b/modules/mod_whosonline/tmpl/default.php @@ -17,7 +17,7 @@ 0) && count($names)) : ?> - get('filter_groups')) : ?> + get('filter_groups', 0)) : ?>