mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 01:54:12 +02:00
Code cleanup
This commit is contained in:
@@ -27,13 +27,15 @@ if(e_QUERY)
|
||||
{
|
||||
$tmp = explode('.', e_QUERY);
|
||||
$action = $tmp[0];
|
||||
$action_parent_id = varset(intval($tmp[1], 0));
|
||||
$action_nl_id = varset(intval($tmp[2], 0));
|
||||
$parID = intval($tmp[1], 0);
|
||||
$nlID = intval($tmp[2], 0);
|
||||
$action_parent_id = varset($parID);
|
||||
$action_nl_id = varset($nlID);
|
||||
unset($tmp);
|
||||
}
|
||||
|
||||
$page_size = 10; // Might become a preference setting later on
|
||||
$text .= "<div style='text-align: center; margin-left: auto; margin-right: auto; width: 100%;'>";
|
||||
$text = "<div style='text-align: center; margin-left: auto; margin-right: auto; width: 100%;'>";
|
||||
|
||||
if (($action <> 'show' && $action <> 'showp') || ($action_parent_id == 0))
|
||||
{ // Action 'show' displays initial page, 'showp' displays following pages
|
||||
|
Reference in New Issue
Block a user