Removing correctely the debug file (only if it exists)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1488 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -16,7 +16,8 @@ class markdown
|
||||
@param string $mark Message in markdown syntax to display */
|
||||
public function html ($mark)
|
||||
{
|
||||
if ($this->debug) unlink ("/tmp/debug");
|
||||
if ($this->debug && file_exists ("/tmp/debugMD"))
|
||||
unlink ("/tmp/debugMD");
|
||||
$res = "";
|
||||
$mark = htmlentities ($mark, ENT_QUOTES);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user