Fix incompatibility issue with PHP < 5.4
This commit is contained in:
parent
78638f34d1
commit
61743f2cac
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user