Revision 541
Added by Matthias almost 17 years ago
functions.php | ||
---|---|---|
1193 | 1193 |
|
1194 | 1194 |
// Unlink the page access file and directory |
1195 | 1195 |
$directory = WB_PATH.PAGES_DIRECTORY.$link; |
1196 |
$filename = $directory.'.php';
|
|
1196 |
$filename = $directory.PAGE_EXTENSION;
|
|
1197 | 1197 |
$directory .= '/'; |
1198 | 1198 |
if(file_exists($filename) && substr($filename,0,1<>'.')) { |
1199 | 1199 |
if(!is_writable(WB_PATH.PAGES_DIRECTORY.'/')) { |
Also available in: Unified diff
Replaced hardcoded .php with the variable PAGE_EXTENSION for the use in pagenames. (!!Attention!! To get extenions other than .php working additional fixes are necessary!) Fixes ticket #370