Index: trunk/core/kernel/processors/main_processor.php =================================================================== diff -u -N -r5060 -r5219 --- trunk/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 5060) +++ trunk/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 5219) @@ -42,7 +42,7 @@ } return $this->Application->BaseURL().$path; } - + /** * Creates HTML tag for all templates * affects future css, js files and href params of links @@ -189,6 +189,15 @@ return $res; } + function DefaultParam($params) + { + foreach ($params as $key => $val) { + if ($this->Application->Parser->GetParam($key) === false) { + $this->Application->Parser->SetParam($key, $val); + } + } + } + /** * Gets value of specified field from specified prefix_special and set it as parser param * @@ -702,7 +711,7 @@ $perm_helper =& $this->Application->recallObject('PermissionsHelper'); return $perm_helper->TagPermissionCheck($params, 'm_CheckPermission'); } - + /** * Checks if user is logged in and if not redirects it to template passed * @@ -723,7 +732,7 @@ $this->Application->Redirect($redirect_template, $redirect_params); } // check by permissions: end - + // check by configuration value: begin $condition = getArrayValue($params, 'condition'); if (!$condition) { @@ -738,7 +747,7 @@ } } // check by configuration value: end - + // check by belonging to group: begin $group = $this->SelectParam($params, 'group'); $group_access = true; @@ -751,7 +760,7 @@ } } // check by belonging to group: end - + if ((!$this->Application->LoggedIn() || !$group_access) && $condition) { if ( $this->Application->LoggedIn() && !$group_access) { $this->Application->Redirect( $params['no_group_perm_template'], Array('next_template'=>$t) );