mirror of
https://github.com/flarum/framework.git
synced 2025-05-16 11:22:33 +08:00
noop instead of exception
This commit is contained in:
parent
7c204c82ab
commit
dd3a4173a1
@ -480,7 +480,6 @@ class User extends AbstractModel
|
||||
*/
|
||||
public function setPreferencesAttribute($value)
|
||||
{
|
||||
throw new \Exception("user.preferences table is deprecated");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -534,7 +533,6 @@ class User extends AbstractModel
|
||||
*/
|
||||
public function setPreference($key, $value)
|
||||
{
|
||||
throw new \Exception('Deprecated since v0.1.0-beta.11');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -732,7 +730,6 @@ class User extends AbstractModel
|
||||
* @param string $key
|
||||
* @param callable $transformer
|
||||
* @param mixed $default
|
||||
* @deprecated 0.1.0-beta.11: `users.preferences` is no longer used, use NotificationPreference::addPreference.
|
||||
*/
|
||||
public static function addPreference($key, callable $transformer = null, $default = null)
|
||||
{
|
||||
@ -750,7 +747,6 @@ class User extends AbstractModel
|
||||
*/
|
||||
public static function getNotificationPreferenceKey($type, $method)
|
||||
{
|
||||
return 'notify_'.$type.'_'.$method;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user