aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-05-01 21:20:49 -0400
committerAndrew Manning <tamanning@zoho.com>2016-05-01 21:20:49 -0400
commit95b96692130e0a949375e133c1aa879efd0cfb2e (patch)
treec3845afd18db5be261f8881e3d9889aedbfebf7a /Zotlabs
parent7fac859fbd40303741a9f862f78561739b8ce358 (diff)
downloadvolse-hubzilla-95b96692130e0a949375e133c1aa879efd0cfb2e.tar.gz
volse-hubzilla-95b96692130e0a949375e133c1aa879efd0cfb2e.tar.bz2
volse-hubzilla-95b96692130e0a949375e133c1aa879efd0cfb2e.zip
Create form on admin/plugins page to add plugin git repo using PHPGit
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Admin.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/Zotlabs/Module/Admin.php b/Zotlabs/Module/Admin.php
index 1d37b41bc..bad717567 100644
--- a/Zotlabs/Module/Admin.php
+++ b/Zotlabs/Module/Admin.php
@@ -1326,7 +1326,16 @@ class Admin extends \Zotlabs\Web\Controller {
}
}
}
-
+
+ $admin_plugins_add_repo_form= replace_macros(
+ get_markup_template('admin_plugins_addrepo.tpl'), array(
+ '$post' => 'admin/plugins',
+ '$desc' => t('Enter the public git repository URL of the plugin repo.'),
+ '$repoURL' => array('repoURL', t('Plugin repo git URL'), '', ''),
+ '$submit' => t('Download Plugin Repo')
+ )
+ );
+
$t = get_markup_template('admin_plugins.tpl');
return replace_macros($t, array(
'$title' => t('Administration'),
@@ -1337,6 +1346,9 @@ class Admin extends \Zotlabs\Web\Controller {
'$plugins' => $plugins,
'$disabled' => t('Disabled - version incompatibility'),
'$form_security_token' => get_form_security_token('admin_plugins'),
+ '$addclone' => t('Add Plugin Repo'),
+ '$expandform' => false,
+ '$form' => $admin_plugins_add_repo_form
));
}