FIX check request instanceof SS_HTTPRequest

This commit is contained in:
Andrew Aitken-Fincham 2016-05-27 13:32:48 +12:00
parent 646a67d341
commit b5a3a1f04e
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class RefreshMarkdownTask extends BuildTask
// 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.
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}");
exec("git clone --quiet https://github.com/{$remote}.git {$folder}_{$branch} --branch {$branch}");
} else {