mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +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();
|
$errors = array();
|
||||||
if($action == 'show_board' || $action == 'show_thread')
|
if($action == 'show_board' || $action == 'show_thread')
|
||||||
{
|
{
|
||||||
require(PAGES . 'forum/' . $action . '.php');
|
require PAGES . 'forum/' . $action . '.php';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ if(!ctype_alnum(str_replace(array('-', '_'), '', $action))) {
|
|||||||
error('Error: Action contains illegal characters.');
|
error('Error: Action contains illegal characters.');
|
||||||
}
|
}
|
||||||
else if(file_exists(PAGES . 'forum/' . $action . '.php')) {
|
else if(file_exists(PAGES . 'forum/' . $action . '.php')) {
|
||||||
require(PAGES . 'forum/' . $action . '.php');
|
require PAGES . 'forum/' . $action . '.php';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
error('This page does not exists.');
|
error('This page does not exists.');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user