Revision 558
Added by Matthias almost 17 years ago
class.frontend.php | ||
---|---|---|
67 | 67 |
if((INTRO_PAGE AND !isset($no_intro)) AND (!isset($page_id) OR !is_numeric($page_id))) { |
68 | 68 |
// Since we have no page id check if we should go to intro page or default page |
69 | 69 |
// Get intro page content |
70 |
$filename = WB_PATH.PAGES_DIRECTORY.'/intro.php';
|
|
70 |
$filename = WB_PATH.PAGES_DIRECTORY.'/intro'.PAGE_EXTENSION;
|
|
71 | 71 |
if(file_exists($filename)) { |
72 | 72 |
$handle = @fopen($filename, "r"); |
73 | 73 |
$content = @fread($handle, filesize($filename)); |
74 | 74 |
@fclose($handle); |
75 | 75 |
$this->preprocess($content); |
76 |
header("Location: pages/intro.php"); // send intro.php as header to allow parsing of php statements
|
|
76 |
header("Location: ".WB_URL.PAGES_DIRECTORY."/intro".PAGE_EXTENSION.""); // send intro.php as header to allow parsing of php statements
|
|
77 | 77 |
echo ($content); |
78 | 78 |
return false; |
79 | 79 |
} |
Also available in: Unified diff
Fixed hardcoded /pages issue in intro page feature