1
0
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:
Cameron 2014-01-29 11:11:40 -08:00
commit f84216d246

View File

@ -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);
}
}
?>
?>