示例#1
0
 public static function messageExists()
 {
     $message = false;
     if (!self::$isCookieNew) {
         self::$rawSession = self::getRawSession();
         if (preg_match('/_messages.*?{[^}]*?Mage_Core_Model_Message_(Success|Error|Notice).*?}/s', self::$rawSession) > 0) {
             $message = true;
         }
     }
     return $message;
 }