mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Removed $syspref global
This commit is contained in:
@@ -22,16 +22,16 @@ class e_emotefilter {
|
|||||||
var $emotes;
|
var $emotes;
|
||||||
|
|
||||||
function e_emotefilter() /* constructor */
|
function e_emotefilter() /* constructor */
|
||||||
{
|
{
|
||||||
global $sysprefs, $pref;
|
$pref = e107::getPref();
|
||||||
|
|
||||||
if(!$pref['emotepack'])
|
if(!$pref['emotepack'])
|
||||||
{
|
{
|
||||||
$pref['emotepack'] = "default";
|
$pref['emotepack'] = "default";
|
||||||
save_prefs();
|
save_prefs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->emotes = e107::getConfig("emote")->getPref();
|
||||||
$this->emotes = $sysprefs->getArray("emote_".$pref['emotepack']);
|
|
||||||
|
|
||||||
if(!vartrue($this->emotes))
|
if(!vartrue($this->emotes))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user