Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/utility/http_query.php
Show First 20 Lines • Show All 367 Lines • ▼ Show 20 Line(s) | |||||
// no idea about how to check, that given template require category to be passed with it, so pass anyway | // no idea about how to check, that given template require category to be passed with it, so pass anyway | ||||
$url_params['pass_category'] = 1; | $url_params['pass_category'] = 1; | ||||
$url_params['response_code'] = 301; // Moved Permanently | $url_params['response_code'] = 301; // Moved Permanently | ||||
trigger_error('Non mod-rewrite url "<strong>' . $_SERVER['REQUEST_URI'] . '</strong>" used', E_USER_NOTICE); | trigger_error('Non mod-rewrite url "<strong>' . $_SERVER['REQUEST_URI'] . '</strong>" used', E_USER_NOTICE); | ||||
$this->Application->Redirect('', $url_params); | $this->Application->Redirect('', $url_params); | ||||
} | } | ||||
if ( $this->Application->GetVar('is_friendly_url') ) { | |||||
$url_params = $this->getRedirectParams(); | |||||
// No idea about how to check, that given template | |||||
// require category to be passed with it, so pass anyway. | |||||
$url_params['pass_category'] = 1; | |||||
$this->Application->Redirect('', $url_params); | |||||
} | |||||
} | } | ||||
else { | else { | ||||
$this->Application->VerifyThemeId(); | $this->Application->VerifyThemeId(); | ||||
$this->Application->VerifyLanguageId(); | $this->Application->VerifyLanguageId(); | ||||
} | } | ||||
$virtual_template = $this->Application->getVirtualPageTemplate($this->Get('m_cat_id')); | $virtual_template = $this->Application->getVirtualPageTemplate($this->Get('m_cat_id')); | ||||
▲ Show 20 Lines • Show All 423 Lines • Show Last 20 Lines |