1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 23:56:58 +02:00

Moving the system to the new URL assembling, fixed call to a non-existent eUrl method system wide.

This commit is contained in:
secretr
2011-11-26 18:17:42 +00:00
parent 0f794aa225
commit 548b585f7e
16 changed files with 55 additions and 42 deletions

View File

@@ -142,7 +142,7 @@ if ($redirectFlag)
switch ($table)
{
case "news" :
header('Location: '.e107::getUrl()->create('core:news', 'main', 'action=extend&id='.$redirectFlag));
header('Location: '.e107::getUrl()->create('news/view/item', 'id='.$redirectFlag));
exit;
case "poll" :
echo "<script type='text/javascript'>document.location.href='".e_HTTP."comment.php?comment.{$table}.{$redirectFlag}'</script>\n";
@@ -154,7 +154,7 @@ if ($redirectFlag)
echo "<script type='text/javascript'>document.location.href='".e_HTTP."page.php?{$redirectFlag}'</script>\n";
exit;
case 'user' :
echo "<script type='text/javascript'>document.location.href='".e_HTTP."user.php?id.{$redirectFlag}'</script>\n";
echo "<script type='text/javascript'>document.location.href='".e107::getUrl()->create('user/profile/view', 'id='.$redirectFlag)</script>\n";
exit;
}