mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
More work on eUrl
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// $Id: url.sc,v 1.2 2008-11-24 18:18:47 mcfly_e107 Exp $
|
||||
// $Id: url.sc,v 1.3 2008-11-25 16:26:02 mcfly_e107 Exp $
|
||||
$e107 = e107::getInstance();
|
||||
list($part, $section, $type, $parms) = explode('::', $parm, 4);
|
||||
list($section, $type, $parms) = explode('|', $parm, 3);
|
||||
if(strpos($parms, '=') !== false)
|
||||
{
|
||||
parse_str($parms, $p);
|
||||
@@ -9,9 +9,4 @@ else
|
||||
{
|
||||
$p[$parms] = 1;
|
||||
}
|
||||
$e107->url->core = ($part == 'core');
|
||||
if($e107->url->createURL($section, $type, $p))
|
||||
{
|
||||
return $e107->url->link;
|
||||
}
|
||||
return 'Failed';
|
||||
return $e107->url->getURL($section, $type, $p);
|
||||
|
Reference in New Issue
Block a user