summaryrefslogtreecommitdiffstats
path: root/php/ws-procedures.php
diff options
context:
space:
mode:
authorNaglfar <naglfar@tilde.institute>2021-01-11 20:52:06 +0100
committerNaglfar <naglfar@tilde.institute>2021-01-11 20:52:06 +0100
commit412d6cd0427f54846fe4a809fe1bc20deb7fab98 (patch)
tree602802b4d742407b218ab01ac5277d952b11ccf8 /php/ws-procedures.php
parentbf0d6e35c962691a13c1d6f6e40cf24cf1b31f51 (diff)
downloadMightyWVMS-412d6cd0427f54846fe4a809fe1bc20deb7fab98.tar.gz
Add canonical url
Diffstat (limited to 'php/ws-procedures.php')
-rw-r--r--php/ws-procedures.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/php/ws-procedures.php b/php/ws-procedures.php
index d1536e7..9a0fce4 100644
--- a/php/ws-procedures.php
+++ b/php/ws-procedures.php
@@ -4,7 +4,7 @@ $wsdata = file($dpath.'/'.$common, FILE_IGNORE_NEW_LINES);
# Language overwritten by the browser preference
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
- $wsdata[3] = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0,2);
+ $wsdata[4] = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0,2);
-$wsdata = array_merge($wsdata, file($dpath.$wsdata[3].'/'.$common, FILE_IGNORE_NEW_LINES));
+$wsdata = array_merge($wsdata, file($dpath.$wsdata[4].'/'.$common, FILE_IGNORE_NEW_LINES));
?>