Only sledding routes where "show_in_overview" is true are shown
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 6 Jan 2009 21:28:24 +0000 (21:28 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Tue, 6 Jan 2009 21:28:24 +0000 (21:28 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrmap@370 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrmap.body.php

index 36bfcfb1336d640b1e0706828d6018ee9337bb24..ffe81b6abefc589e903ae24b062a309d645018af 100644 (file)
@@ -101,7 +101,7 @@ class WrGoogleMaps {
 
                // Query database
                $dbr = wfGetDB(DB_SLAVE);
-               $res = $dbr->select('wrsleddingcache', array('page_title', 'position_latitude', 'position_longitude'));
+               $res = $dbr->select('wrsleddingcache', array('page_title', 'position_latitude', 'position_longitude'), 'show_in_overview');
                $sleddingRoutes = array();
                while ($sleddingRoute = $dbr->fetchRow($res)) $sleddingRoutes[] = $sleddingRoute;
                $dbr->freeResult($res);