Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getSearchPath() {
- $env_id = $this->info['instance'];
- $query = apachesolr_current_query($env_id);
- if (!$query || (NULL === $this->searchPath && NULL === $query->getPath())) {
- if ($path = module_invoke($this->info['module'] . '_search', 'search_info')) {
- $this->searchPath = 'search/' . $path['path'];
- if (!isset($_GET['keys']) && ($keys = $this->getSearchKeys())) {
- $this->searchPath .= '/' . $keys;
- }
- }
- }
- if (!$query || NULL === $query->getPath()) {
- return $this->searchPath;
- }
- else {
- return $query->getPath();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement