Wikitten icon indicating copy to clipboard operation
Wikitten copied to clipboard

Problem about APP_DIR

Open ahuigo opened this issue 11 years ago • 0 comments

I'm confused about APP_DIR. If I touch a file named /library/linux/bash.md (with no space),I‘ll get errors when I access http://host.com/linux/bash.md

 `could not find file bash.md` .

That is because of php gets a wrong APP_DIR in index.php:

 /code%20snippets/Bash.sh ->  APP_DIR=
/linux/bash.sh ->  APP_DIR=/linux

I've fixed it by reset APP_DIR as defined('APP_DIR', ''); in index.php

BTW, I'm looking forward that creating / updating files directly through the web interface. It would be awesome if you add this markdown editor: https://stackedit.io/

ahuigo avatar Jun 15 '14 11:06 ahuigo