changeset 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
files index.php
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/index.php	Mon Aug 24 11:19:52 2015 +0300
+++ b/index.php	Mon Aug 24 11:54:14 2015 +0300
@@ -228,8 +228,8 @@
     // Not cached, try to fetch data
     $uri = "http://www.oamk.fi/opinto-opas/opintojaksohaku/?sivu=oj_kuvaus&koodi1=".$id."&kieli=".strtoupper($pageLang);
     if (
-        lukFetchCourseData($id, $uri."&opas=2014-2015", $cache[$id][$pageLang]) ||
-        lukFetchCourseData($id, $uri."&opas=2015-2016", $cache[$id][$pageLang])
+        lukFetchCourseData($id, $uri."&opas=2015-2016", $cache[$id][$pageLang]) ||
+        lukFetchCourseData($id, $uri."&opas=2014-2015", $cache[$id][$pageLang])
       )
       $cacheDirty = TRUE;
   }