Fix incompatibility issue with PHP < 5.4

This commit is contained in:
Gautham Warrier 2014-03-04 17:06:29 +05:30
parent 78638f34d1
commit 61743f2cac

View File

@ -30,7 +30,10 @@
if (is_file($docs_path . "/index.md")) return $docs_path . "/index.md"; if (is_file($docs_path . "/index.md")) return $docs_path . "/index.md";
else { else {
if (empty($options['languages'])) return $base_doc; if (empty($options['languages'])) return $base_doc;
else return $base_doc[array_keys($base_doc)[0]]; else {
$t = array_keys($base_doc);
return $base_doc[$t[0]];
}
} }
} else { } else {
$url = explode("/", $url); $url = explode("/", $url);