diff --git a/e107_plugins/pm/pm_shortcodes.php b/e107_plugins/pm/pm_shortcodes.php index 5d84f2f27..c6718a516 100644 --- a/e107_plugins/pm/pm_shortcodes.php +++ b/e107_plugins/pm/pm_shortcodes.php @@ -582,6 +582,8 @@ if(!class_exists('plugin_pm_pm_shortcodes')) public function sc_pm_delete($parm = '') { + $tp = e107::getParser(); + if($this->pmMode !== 'inbox' && $this->pmMode !== 'outbox' && empty($parm)) { return ''; @@ -599,7 +601,7 @@ if(!class_exists('plugin_pm_pm_shortcodes')) $action = $extra === '.outbox' ? 'delete-out' : 'delete-in'; - return "".PM_DELETE_ICON.""; + return "toAttribute($tp->toJSON(LAN_JSCONFIRM)).") \">".PM_DELETE_ICON.""; }