/** * Add a prefix to the object whitelist. * * @param string $prefix * @parsm bool $permanently * @return void */ public static function addObjectPrefix($prefix, $permanently = false) { if (!count(self::$_object_whitelist)) { self::_loadWhitelists(); } $prefix = self::formatPrefix($prefix); if (!in_array($prefix, self::$_object_whitelist)) { self::$_object_whitelist[] = $prefix; natcasesort(self::$_object_whitelist); if ($permanently) { Config::set('mediafilter.object', self::$_object_whitelist); Config::save(); } } }