diff options
author | zotlabs <mike@macgirvin.com> | 2016-11-19 17:48:02 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-19 17:48:02 +1100 |
commit | 12b39feba385e56229a5ef5fe8383444f19f29e3 (patch) | |
tree | 26d41d8bda53b2ae45c94f7742b59bbb15dff0f7 /include/wiki.php | |
parent | 3147b7c62bf1541b3c458baa5b5af47c0663ead2 (diff) | |
parent | 16281c626b7db96e5af3e05179315b4f0dc33d1c (diff) | |
download | volse-hubzilla-12b39feba385e56229a5ef5fe8383444f19f29e3.tar.gz volse-hubzilla-12b39feba385e56229a5ef5fe8383444f19f29e3.tar.bz2 volse-hubzilla-12b39feba385e56229a5ef5fe8383444f19f29e3.zip |
Merge pull request #591 from anaqreon/wiki-gui
Wiki UI improvements
Diffstat (limited to 'include/wiki.php')
-rw-r--r-- | include/wiki.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/wiki.php b/include/wiki.php index bcdf9d7d8..d2cb51bd3 100644 --- a/include/wiki.php +++ b/include/wiki.php @@ -32,13 +32,16 @@ function wiki_page_list($resource_id) { return array('pages' => null, 'wiki' => null); } $pages = array(); + $pages[] = array('title' => 'Home', 'url' => 'Home'); if (is_dir($w['path']) === true) { $files = array_diff(scandir($w['path']), array('.', '..', '.git')); // TODO: Check that the files are all text files foreach($files as $file) { // strip the .md file extension and unwrap URL encoding to leave HTML encoded name - $pages[] = array('title' => urldecode(substr($file, 0, -3)), 'url' => urlencode(substr($file, 0, -3))); + if( urldecode(substr($file, 0, -3)) !== 'Home') { + $pages[] = array('title' => urldecode(substr($file, 0, -3)), 'url' => urlencode(substr($file, 0, -3))); + } } } |