comparison index.php @ 177:f8ae384b817e

Change fetching order again.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 25 Aug 2015 08:31:20 +0300
parents 113820219e8b
children 6a7ff339b4bb
comparison
equal deleted inserted replaced
176:113820219e8b 177:f8ae384b817e
226 if (!isset($cache[$id][$pageLang])) 226 if (!isset($cache[$id][$pageLang]))
227 { 227 {
228 // Not cached, try to fetch data 228 // Not cached, try to fetch data
229 $uri = "http://www.oamk.fi/opinto-opas/opintojaksohaku/?sivu=oj_kuvaus&koodi1=".$id."&kieli=".strtoupper($pageLang); 229 $uri = "http://www.oamk.fi/opinto-opas/opintojaksohaku/?sivu=oj_kuvaus&koodi1=".$id."&kieli=".strtoupper($pageLang);
230 if ( 230 if (
231 lukFetchCourseData($id, $uri."&opas=2015-2016", $cache[$id][$pageLang]) || 231 lukFetchCourseData($id, $uri."&opas=2014-2015", $cache[$id][$pageLang]) ||
232 lukFetchCourseData($id, $uri."&opas=2014-2015", $cache[$id][$pageLang]) 232 lukFetchCourseData($id, $uri."&opas=2015-2016", $cache[$id][$pageLang])
233 ) 233 )
234 $cacheDirty = TRUE; 234 $cacheDirty = TRUE;
235 } 235 }
236 236
237 if (isset($cache[$id]) && isset($cache[$id][$pageLang])) 237 if (isset($cache[$id]) && isset($cache[$id][$pageLang]))