/** * Displays a session message via a Popup * * @return string */ public static function displayMsg() { if (!isset($_SESSION)) { return ""; } $msg = $_SESSION['GeckoSpMsg']; unset($_SESSION['GeckoSpMsg']); if (empty($msg)) { return ""; } $html = "window.alert(\"{$msg}\");\n"; $html = Gecko_HTML::getJavaScriptTag($html); return $html; }