Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Open components\com_content\router.php in an editor and make a small changes:
- //in function ContentBuildRoute(&$query) replace line 27
- $advanced = $params->get('sef_advanced_link', 0);
- //with
- $advanced = $params->get('sef_advanced_link', 1);
- //in function ContentParseRoute($segments) replace line 208
- $advanced = $params->get('sef_advanced_link', 0);
- //with
- $advanced = $params->get('sef_advanced_link', 1);
- //Comment out this lines
- if (strpos($segments[0], ':') === false) {
- $vars['view'] = 'article';
- $vars['id'] = (int)$segments[0];
- return $vars;
- }
- //so it would be
- /*
- if (strpos($segments[0], ':') === false) {
- $vars['view'] = 'article';
- $vars['id'] = (int)$segments[0];
- return $vars;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement