Some fixes for OpenID and OMB URLs

This commit is contained in:
Evan Prodromou
2009-03-06 17:18:21 -08:00
parent e8f36b4f6a
commit 16a6aa5390
2 changed files with 9 additions and 7 deletions

View File

@@ -722,12 +722,15 @@ function common_local_url($action, $args=null, $params=null, $fragment=null)
{
$r = Router::get();
$path = $r->build($action, $args, $params, $fragment);
if ($path) {
}
if (common_config('site','fancy')) {
$url = common_path(mb_substr($path, 1));
} else {
$url = common_path('index.php'.$path);
if (mb_strpos($path, '/index.php') === 0) {
$url = common_path(mb_substr($path, 1));
} else {
$url = common_path('index.php'.$path);
}
}
return $url;
}