public function removeDeniedExtension($extension)
    {

        $key = array_search($extension, $this->deniedExtensions);
        if ($key !== false) {
            unset($this->deniedExtensions[$key]);
            return true;
        }

        return false;
    }
public function removeDeniedExtension($extension)
    {

        $key = array_search($extension, $this->deniedExtensions);
        if ($key !== false) {
            unset($this->deniedExtensions[$key]);
            return true;
        }

        return false;
    }
public function removeDeniedExtension ( $ extension ) { $ key = array_search ( $ extension , $ this -> deniedExtensions ) ; if ( $ key !== false ) { unset ( $ this -> deniedExtensions [ $ key ] ) ; return true ; } return false ; }
Remove an denied extension from the list.

@param string $extension
@return boolean true if found and removed, false otherwise
Remove an denied extension from the list .