Allow absolute paths in DocumentationSearch::$index_location

This commit is contained in:
Ingo Schommer 2013-10-04 10:55:44 +02:00
parent 49f56888f2
commit b3d4e402a5

View File

@ -205,10 +205,15 @@ class DocumentationSearch {
self::$index_location = DOCSVIEWER_DIR; self::$index_location = DOCSVIEWER_DIR;
} }
return Controller::join_links( if(file_exists(self::$index_location)) {
TEMP_FOLDER, return self::$index_location;
trim(self::$index_location, '/') } else {
); return Controller::join_links(
TEMP_FOLDER,
trim(self::$index_location, '/')
);
}
} }
/** /**