Revision 239
Added by stefan about 19 years ago
class.frontend.php | ||
---|---|---|
93 | 93 |
// Check if we should redirect or include page inline |
94 | 94 |
if(HOMEPAGE_REDIRECTION) { |
95 | 95 |
// Redirect to page |
96 |
header("Location: ".page_link($this->default_link)); |
|
96 |
header("Location: ".$this->page_link($this->default_link));
|
|
97 | 97 |
exit(); |
98 | 98 |
} else { |
99 | 99 |
// Include page inline |
... | ... | |
132 | 132 |
// Check if the page language is also the selected language. If not, send headers again. |
133 | 133 |
if ($this->page['language']!=LANGUAGE) { |
134 | 134 |
require_once(WB_PATH.'/framework/functions.php'); |
135 |
header('Location: '.page_link($this->page['link']).'?lang='.$this->page['language']); |
|
135 |
header('Location: '.$this->page_link($this->page['link']).'?lang='.$this->page['language']);
|
|
136 | 136 |
exit(); |
137 | 137 |
} |
138 | 138 |
// Begin code to set details as either variables of constants |
... | ... | |
268 | 268 |
// Get page link |
269 | 269 |
$get_link = $database->query("SELECT link FROM ".TABLE_PREFIX."pages WHERE page_id = '$page_id' LIMIT 1"); |
270 | 270 |
$fetch_link = $get_link->fetchRow(); |
271 |
$link = page_link($fetch_link['link']); |
|
271 |
$link = $this->page_link($fetch_link['link']);
|
|
272 | 272 |
$content = preg_replace($pattern,$link,$content); |
273 | 273 |
} |
274 | 274 |
} |
Also available in: Unified diff
Fixed more inconsistencies regarding line endings and end-of-file newlines