1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-02 02:42:40 +02:00

Experimental url creation code added.

This commit is contained in:
Cameron
2014-06-06 02:39:44 -07:00
parent f0d379ef28
commit e21ae16edd
2 changed files with 27 additions and 2 deletions

View File

@@ -2527,7 +2527,25 @@ class e107
}
/**
* Experimental static (easy) sef-url creation method (works with e_url.php @see /index.php)
*/
public static function url($plugin='',$key)
{
$tmp = e107::getAddonConfig('e_url');
if(varset($tmp[$plugin][$key]['sef']))
{
return e_HTTP.$tmp[$plugin][$key]['sef'];
}
elseif(varset($tmp[$plugin][$key]['redirect']))
{
return self::getParser()->replaceConstants($tmp[$plugin][$key]['redirect'],'full');
}
return;
}