summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-10-02 14:55:24 +0200
committerGerrit Uitslag <klapinklapin@gmail.com>2014-10-02 14:55:24 +0200
commit7e8500eea1e53b1de0e0f70400664afa442cd08d (patch)
tree4dd246a9b26f930fc7cbfef76116320dcbe77aaf /bin
parente3710957c6b7e12293805a15d0624be7c7054092 (diff)
downloadrpg-7e8500eea1e53b1de0e0f70400664afa442cd08d.tar.gz
rpg-7e8500eea1e53b1de0e0f70400664afa442cd08d.tar.bz2
PHPDocs and some improvements
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gittool.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/gittool.php b/bin/gittool.php
index 7991a9997..cbadb5bfa 100755
--- a/bin/gittool.php
+++ b/bin/gittool.php
@@ -206,12 +206,13 @@ class GitToolCLI extends DokuCLI {
* Install extension from the given download URL
*
* @param string $ext
- * @return bool
+ * @return bool|null
*/
private function downloadExtension($ext) {
/** @var helper_plugin_extension_extension $plugin */
$plugin = plugin_load('helper', 'extension_extension');
if(!$ext) die("extension plugin not available, can't continue");
+
$plugin->setExtension($ext);
$url = $plugin->getDownloadURL();
@@ -297,6 +298,7 @@ class GitToolCLI extends DokuCLI {
/** @var helper_plugin_extension_extension $ext */
$ext = plugin_load('helper', 'extension_extension');
if(!$ext) die("extension plugin not available, can't continue");
+
$ext->setExtension($extension);
$repourl = $ext->getSourcerepoURL();