From 316c88c90ee64fa9f163d349978b407d039e836c Mon Sep 17 00:00:00 2001 From: Luke Carlson Date: Thu, 3 Jul 2014 11:00:45 -0400 Subject: [PATCH] made the fix PHP 5.3 friendly --- libs/live.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/live.php b/libs/live.php index 52a956c..3261524 100644 --- a/libs/live.php +++ b/libs/live.php @@ -28,6 +28,10 @@ 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("?", $url); + $url = $url[0]; + } if ($url === '' || $url === 'index') { if (is_file($docs_path . "/index.md")) return $docs_path . "/index.md"; else {