ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/website/www.git/commit/?id=256e23b8a0f35f0657d379ad668406c56d5f9f74

commit 256e23b8a0f35f0657d379ad668406c56d5f9f74
Author: Andy Williams <a...@andywilliams.me>
Date:   Wed Oct 11 15:01:25 2017 +0100

    Redirect to markdown start pages where they exist
---
 public_html/inc/pageutils.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/public_html/inc/pageutils.php b/public_html/inc/pageutils.php
index 9b016620..69f4a09f 100644
--- a/public_html/inc/pageutils.php
+++ b/public_html/inc/pageutils.php
@@ -71,6 +71,9 @@ function getID($param='id',$clean=true){
         if(page_exists($id.$conf['start'])){
             // start page inside namespace
             $id = $id.$conf['start'];
+        }elseif(page_exists($id.$conf['start'].'.md')){
+            // start markdown page inside namespace
+            $id = $id.$conf['start'].'.md';
         }elseif(page_exists($id.noNS(cleanID($id)))){
             // page named like the NS inside the NS
             $id = $id.noNS(cleanID($id));

-- 


Reply via email to