mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Removed $syspref global
This commit is contained in:
parent
784e755ce5
commit
4baabb984d
@ -22,16 +22,16 @@ class e_emotefilter {
|
||||
var $emotes;
|
||||
|
||||
function e_emotefilter() /* constructor */
|
||||
{
|
||||
global $sysprefs, $pref;
|
||||
{
|
||||
$pref = e107::getPref();
|
||||
|
||||
if(!$pref['emotepack'])
|
||||
{
|
||||
$pref['emotepack'] = "default";
|
||||
save_prefs();
|
||||
}
|
||||
|
||||
|
||||
$this->emotes = $sysprefs->getArray("emote_".$pref['emotepack']);
|
||||
|
||||
$this->emotes = e107::getConfig("emote")->getPref();
|
||||
|
||||
if(!vartrue($this->emotes))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user