FIX check request instanceof SS_HTTPRequest
This commit is contained in:
parent
646a67d341
commit
b5a3a1f04e
|
@ -103,7 +103,7 @@ class RefreshMarkdownTask extends BuildTask
|
||||||
// to enable local development of framework and doc.silverstripe.org from within doc.silverstripe.org. Otherwise,
|
// to enable local development of framework and doc.silverstripe.org from within doc.silverstripe.org. Otherwise,
|
||||||
// only the documentation source files are downloaded, only allowing the viewing of documentation files.
|
// only the documentation source files are downloaded, only allowing the viewing of documentation files.
|
||||||
|
|
||||||
if( $this->request->getVar('dev') ) {
|
if ($this->request instanceof SS_HTTPRequest && $this->request->getVar('dev')) {
|
||||||
$this->printLine("Cloning repository {$remote}/{$branch} into assets/src/{$folder}_{$branch}");
|
$this->printLine("Cloning repository {$remote}/{$branch} into assets/src/{$folder}_{$branch}");
|
||||||
exec("git clone --quiet https://github.com/{$remote}.git {$folder}_{$branch} --branch {$branch}");
|
exec("git clone --quiet https://github.com/{$remote}.git {$folder}_{$branch} --branch {$branch}");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue