mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00:00
Merge branch 'master' of github.com:silverstripe/silverstripe-sapphiredocs
This commit is contained in:
commit
0ba6d8d338
@ -265,7 +265,7 @@ class DocumentationService {
|
|||||||
|
|
||||||
if($dir && !$ignored) {
|
if($dir && !$ignored) {
|
||||||
// check to see if it has docs
|
// check to see if it has docs
|
||||||
$docs = Controller::join_links($dir, 'docs');
|
$docs = Director::baseFolder() . '/' . Controller::join_links($entity, 'docs');
|
||||||
|
|
||||||
if(is_dir($docs)) {
|
if(is_dir($docs)) {
|
||||||
self::register($entity, $docs, '', $entity, true);
|
self::register($entity, $docs, '', $entity, true);
|
||||||
|
@ -754,7 +754,7 @@ class DocumentationViewer extends Controller {
|
|||||||
$form = new Form($this, 'DocumentationSearchForm', $fields, $actions);
|
$form = new Form($this, 'DocumentationSearchForm', $fields, $actions);
|
||||||
$form->disableSecurityToken();
|
$form->disableSecurityToken();
|
||||||
$form->setFormMethod('get');
|
$form->setFormMethod('get');
|
||||||
$form->setFormAction('home/DocumentationSearchForm');
|
$form->setFormAction(self::$link_base . 'DocumentationSearchForm');
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user