/** * Load the Dictionary class * @return LoginDictionary */ public function loadDictionary() { $classPath = $this->getProperty('dictionaryClassPath', $this->login->config['modelPath'] . 'login/'); $className = $this->getProperty('dictionaryClassName', 'LoginDictionary'); if ($this->modx->loadClass($className, $classPath, true, true)) { $this->dictionary = new LoginDictionary($this->login); $this->dictionary->gather(); } else { $this->modx->log(modX::LOG_LEVEL_ERROR, '[Login] Could not load LoginDictionary class from '); } return $this->dictionary; }