Revision 567
Added by Matthias almost 17 years ago
save_post.php | ||
---|---|---|
72 | 72 |
} elseif($old_link != $post_link OR !file_exists(WB_PATH.PAGES_DIRECTORY.$post_link.PAGE_EXTENSION)) { |
73 | 73 |
// We need to create a new file |
74 | 74 |
// First, delete old file if it exists |
75 |
if(file_exists(WB_PATH.$old_link.PAGE_EXTENSION)) { |
|
76 |
unlink(WB_PATH.$old_link.PAGE_EXTENSION); |
|
75 |
if(file_exists(WB_PATH.PAGES_DIRECTORY.$old_link.PAGE_EXTENSION)) {
|
|
76 |
unlink(WB_PATH.PAGES_DIRECTORY.$old_link.PAGE_EXTENSION);
|
|
77 | 77 |
} |
78 | 78 |
// Specify the filename |
79 | 79 |
$filename = WB_PATH.PAGES_DIRECTORY.'/'.$post_link.PAGE_EXTENSION; |
Also available in: Unified diff
Fixed bug in news modul with missing variable PAGE_DIRECTORY