mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 05:02:02 +02:00
Merge pull request #503 from ajaybhargav/master
Plugin: Fix PM URL creation in shortcodes
This commit is contained in:
commit
f84216d246
@ -578,13 +578,11 @@ class pm_shortcodes extends e_shortcode
|
||||
*/
|
||||
public function url($action, $params = array(), $options = array())
|
||||
{
|
||||
if($action == "new"){ $action = 'send'; }
|
||||
return e_PLUGIN."pm/pm.php?".$action; //FIXME
|
||||
if(strpos($action, '/') === false) $action = 'view/'.$action;
|
||||
|
||||
e107::getUrl()->create('pm/'.$action, $params, $options);
|
||||
return e107::getUrl()->create('pm/'.$action, $params, $options);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user