• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Duplicate scope problem in XenForo_ViewPublic_Helper_Editor

R

ragtek

Guest
#1
PHP:
public static function getEditorSmilies(array $smilies = null)
	{
		if (!is_array($smilies))
		{
			if (XenForo_Application::isRegistered('smilies'))
			{
				$smilies = XenForo_Application::get('smilies');
			}
			else
			{
				$smilies = XenForo_Model::create('XenForo_Model_Smilie')->getAllSmiliesForCache();
				XenForo_Application::set('smilies', $options['smilies']);
			}
		}
XenForo_Application::get('options'); is missing at the start;)