/** * Locate a file in the custom or stock folders. Look in the custom folders first. * * @param string $file The file we are looking for * @return bool|string If the file is found return the path, False if not */ protected function locateFile($file) { if (empty($this->options['locator_class_params'][0]) || !is_array($this->options['locator_class_params'][0])) { return false; } return SugarAutoLoader::lookupFile($this->options['locator_class_params'][0], $file); }