roundcubemail/program/lib/Roundcube/rcube_spellcheck_enchant.php
private function init()
    {
        if (!$this->enchant_broker) {
            if (!extension_loaded('enchant')) {
                $this->error = "Enchant extension not available";
                return;
            }

            $this->enchant_broker = enchant_broker_init();
        }

        if (!enchant_broker_dict_exists($this->enchant_broker, $this->lang)) {
            $this->error = "Unable to load dictionary for selected language using Enchant";
            return;
        }

        $this->enchant_dictionary = enchant_broker_request_dict($this->enchant_broker, $this->lang);
    }
private function init()
    {
        if (!$this->enchant_broker) {
            if (!extension_loaded('enchant')) {
                $this->error = "Enchant extension not available";
                return;
            }

            $this->enchant_broker = enchant_broker_init();
        }

        if (!enchant_broker_dict_exists($this->enchant_broker, $this->lang)) {
            $this->error = "Unable to load dictionary for selected language using Enchant";
            return;
        }

        $this->enchant_dictionary = enchant_broker_request_dict($this->enchant_broker, $this->lang);
    }
private function init ( ) { if ( ! $ this -> enchant_broker ) { if ( ! extension_loaded ( 'enchant' ) ) { $ this -> error = "Enchant extension not available" ; return ; } $ this -> enchant_broker = enchant_broker_init ( ) ; } if ( ! enchant_broker_dict_exists ( $ this -> enchant_broker , $ this -> lang ) ) { $ this -> error = "Unable to load dictionary for selected language using Enchant" ; return ; } $ this -> enchant_dictionary = enchant_broker_request_dict ( $ this -> enchant_broker , $ this -> lang ) ; }
Initializes Enchant dictionary
Initializes Enchant dictionary