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

Fixed  "BBCode Sites" function oddness

Belazor

Active member
#1
It seems to me that the $cache variable in this function is largely pointless:

PHP:
    public function getBbCodeMediaSitesForCache()
    {
        $sites = $this->getAllBbCodeMediaSites();
        $cache = array();
        foreach ($sites AS &$site)
        {
            $cache[$site['media_site_id']] = array(
                'embed_html' => $site['embed_html']
            );
        }

        return $sites;
    }