Revision | 1e4892ec4105856314ec3ec4f68fb773658529dc (tree) |
---|---|
Time | 2006-06-11 23:42:09 |
Author | henoheno <henoheno> |
Commiter | henoheno |
Correct using PKWK_UPDATE_EXEC
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | -// $Id: file.php,v 1.71 2006/06/08 14:36:24 henoheno Exp $ | |
3 | +// $Id: file.php,v 1.72 2006/06/11 14:42:09 henoheno Exp $ | |
4 | 4 | // Copyright (C) |
5 | 5 | // 2002-2006 PukiWiki Developers Team |
6 | 6 | // 2001-2002 Originally written by yu-ji |
@@ -249,7 +249,7 @@ function file_write($dir, $page, $str, $notimestamp = FALSE) | ||
249 | 249 | if ($timestamp === FALSE) lastmodified_add($page); |
250 | 250 | |
251 | 251 | // Command execution per update |
252 | - if (defined('PKWK_UPDATE_EXEC')) | |
252 | + if (defined('PKWK_UPDATE_EXEC') && PKWK_UPDATE_EXEC) | |
253 | 253 | system(PKWK_UPDATE_EXEC . ' > /dev/null &'); |
254 | 254 | |
255 | 255 | } else if ($dir == DIFF_DIR && $notify) { |