mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* remove unnecessary parentheses in include/require (forgot this part)
This commit is contained in:
parent
6ba24eebb0
commit
857aa110c8
@ -175,7 +175,7 @@ if(empty($action))
|
||||
$errors = array();
|
||||
if($action == 'show_board' || $action == 'show_thread')
|
||||
{
|
||||
require(PAGES . 'forum/' . $action . '.php');
|
||||
require PAGES . 'forum/' . $action . '.php';
|
||||
return;
|
||||
}
|
||||
|
||||
@ -194,7 +194,7 @@ if(!ctype_alnum(str_replace(array('-', '_'), '', $action))) {
|
||||
error('Error: Action contains illegal characters.');
|
||||
}
|
||||
else if(file_exists(PAGES . 'forum/' . $action . '.php')) {
|
||||
require(PAGES . 'forum/' . $action . '.php');
|
||||
require PAGES . 'forum/' . $action . '.php';
|
||||
}
|
||||
else {
|
||||
error('This page does not exists.');
|
||||
|
Loading…
x
Reference in New Issue
Block a user