1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Fixes issue with subdomainUrl() method and SEF Urls.

This commit is contained in:
Cameron
2015-06-09 18:26:21 -07:00
parent ca5611f31c
commit ce6802f991
2 changed files with 7 additions and 4 deletions

View File

@@ -416,9 +416,12 @@ class language{
// $urlval = str_replace($_SERVER['HTTP_HOST'],$codelnk.".".e_DOMAIN,e_SELF);
$urlval = (e_QUERY)
/* $urlval = (e_QUERY)
? str_replace($_SERVER['HTTP_HOST'], $codelnk.'.'.e_DOMAIN, e_SELF).'?'.e_QUERY
: str_replace($_SERVER['HTTP_HOST'], $codelnk.'.'.e_DOMAIN, e_SELF);
*/
$urlval = str_replace($_SERVER['HTTP_HOST'], $codelnk.'.'.e_DOMAIN, e_REQUEST_URL) ;
return (string) $urlval;
}

View File

@@ -34,7 +34,7 @@ class faqs_url // plugin-folder + '_url'
);
$config['item'] = array(
'regex' => '^faqs/(\d*)-(.*)$$',
'regex' => '^faqs/(\d*)-(.*)$',
'sef' => 'faqs/{faq_id}-{faq_sef}', // {faq_info_sef} is substituted with database value when parsed by e107::url();
'redirect' => '{e_PLUGIN}faqs/faqs.php?id=$1'
);