public static function getHash($seed) { // Deprecation warning. MLog::add('MUtility::getHash() is deprecated. Use MApplication::getHash() instead.', MLog::WARNING, 'deprecated'); return MApplication::getHash($seed); }
public static function getFormToken($forceNew = false) { $user = MFactory::getUser(); $session = MFactory::getSession(); $hash = MApplication::getHash($user->get('id', 0) . $session->getToken($forceNew)); return $hash; }