Merge pull request #189 from jLukeC/master

allowed query strings when clean urls are enabled
This commit is contained in:
Denis Kisselev 2014-06-30 15:09:01 -07:00
commit eaba38fe69

View File

@ -28,6 +28,7 @@
function getfile($tree, $url, $current_dir, $flag = FALSE) {
global $docs_path, $base_doc, $options;
$url = clean_url($url, "Live", true);
if ($options['clean_urls'] == true) $url = explode("?", $link)[0];
if ($url === '' || $url === 'index') {
if (is_file($docs_path . "/index.md")) return $docs_path . "/index.md";
else {