mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
Fixing functions called statically to be declared as such
This commit is contained in:
parent
73a66da658
commit
927e1b0724
@ -174,14 +174,14 @@ class DocumentationSearch {
|
|||||||
/**
|
/**
|
||||||
* @param string
|
* @param string
|
||||||
*/
|
*/
|
||||||
public function set_index($index) {
|
public static function set_index($index) {
|
||||||
self::$index_location = $index;
|
self::$index_location = $index;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function get_index_location() {
|
public static function get_index_location() {
|
||||||
if(!self::$index_location) {
|
if(!self::$index_location) {
|
||||||
self::$index_location = DOCSVIEWER_DIR;
|
self::$index_location = DOCSVIEWER_DIR;
|
||||||
}
|
}
|
||||||
@ -449,4 +449,4 @@ class DocumentationSearch {
|
|||||||
|
|
||||||
return $this->outputController->customise($data)->renderWith($templates);
|
return $this->outputController->customise($data)->renderWith($templates);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -545,4 +545,4 @@ class DocumentationService {
|
|||||||
|
|
||||||
closedir($handle);
|
closedir($handle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user