Mercurial > hg > lukkari
comparison index.php @ 172:14117fd8a083
Different order of data fetching for course names.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 24 Aug 2015 11:54:14 +0300 |
parents | 66c871dacbc2 |
children | d98aaa540459 |
comparison
equal
deleted
inserted
replaced
171:66c871dacbc2 | 172:14117fd8a083 |
---|---|
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=2014-2015", $cache[$id][$pageLang]) || | 231 lukFetchCourseData($id, $uri."&opas=2015-2016", $cache[$id][$pageLang]) || |
232 lukFetchCourseData($id, $uri."&opas=2015-2016", $cache[$id][$pageLang]) | 232 lukFetchCourseData($id, $uri."&opas=2014-2015", $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])) |