aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authorNumEricR <eric.github@gmail.com>2013-08-26 22:25:03 +0200
committerNumEricR <eric.github@gmail.com>2013-09-14 10:06:59 +0200
commit1b2abab6ddbb3460b8981a296fe04477a42801b3 (patch)
treecf1fc1503cf7a4e7da5dae7dd6ece8fc7b33c2c3 /inc/poche
parent10ab20d8e21b2fa3f4d8e86909a7cb4d0d9a84d2 (diff)
downloadwallabag-1b2abab6ddbb3460b8981a296fe04477a42801b3.tar.gz
wallabag-1b2abab6ddbb3460b8981a296fe04477a42801b3.tar.zst
wallabag-1b2abab6ddbb3460b8981a296fe04477a42801b3.zip
Add lang attribute in html tag
Diffstat (limited to 'inc/poche')
-rw-r--r--inc/poche/Tools.class.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php
index 3a792d43..1ab90be1 100644
--- a/inc/poche/Tools.class.php
+++ b/inc/poche/Tools.class.php
@@ -248,4 +248,9 @@ class Tools
248 fclose($fp); 248 fclose($fp);
249 } 249 }
250 } 250 }
251
252 public static function getDocLanguage($userlanguage) {
253 $lang = explode('.', $userlanguage);
254 return str_replace('_', '-', $lang[0]);
255 }
251} \ No newline at end of file 256} \ No newline at end of file