diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-08-09 15:31:45 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-08-09 15:31:45 +0200 |
commit | ea9f3f904d439e9af84bdbed8e1a0bba3ed286b2 (patch) | |
tree | 93fc55acc7c68b1f875de2fb107bda4786db7a28 /lib/plugins/extension/helper | |
parent | 89275cfd7e4e8b88724a36ccf7ae7bd29342d494 (diff) | |
download | rpg-ea9f3f904d439e9af84bdbed8e1a0bba3ed286b2.tar.gz rpg-ea9f3f904d439e9af84bdbed8e1a0bba3ed286b2.tar.bz2 |
added 4th tab for manual install
Diffstat (limited to 'lib/plugins/extension/helper')
-rw-r--r-- | lib/plugins/extension/helper/extension.php | 2 | ||||
-rw-r--r-- | lib/plugins/extension/helper/gui.php | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lib/plugins/extension/helper/extension.php b/lib/plugins/extension/helper/extension.php index 88fb5e229..244ec9b9a 100644 --- a/lib/plugins/extension/helper/extension.php +++ b/lib/plugins/extension/helper/extension.php @@ -702,7 +702,7 @@ class helper_plugin_extension_extension extends DokuWiki_Plugin { public function download($url, &$path) { // check the url $matches = array(); - if(!preg_match("/[^\/]*$/", $url, $matches) || !$matches[0]) { + if(!preg_match('/[^\/]*$/', $url, $matches) || !$matches[0]) { return $this->getLang('baddownloadurl'); } $file = $matches[0]; diff --git a/lib/plugins/extension/helper/gui.php b/lib/plugins/extension/helper/gui.php index cf5b8a347..09cea7fcb 100644 --- a/lib/plugins/extension/helper/gui.php +++ b/lib/plugins/extension/helper/gui.php @@ -14,7 +14,7 @@ if(!defined('DOKU_INC')) die(); */ class helper_plugin_extension_gui extends DokuWiki_Plugin { - protected $tabs = array('plugins', 'templates', 'search'); + protected $tabs = array('plugins', 'templates', 'search', 'install'); /** @var string the extension that should have an open info window FIXME currently broken*/ protected $infofor = ''; @@ -99,13 +99,20 @@ class helper_plugin_extension_gui extends DokuWiki_Plugin { } /** + * Display the template tab + */ + public function tabInstall() { + echo $this->locale_xhtml('intro_install'); + } + + /** * Print the tab navigation * * @fixme style active one */ public function tabNavigation() { echo '<ul class="tabs">'; - foreach(array('plugins', 'templates', 'search') as $tab) { + foreach($this->tabs as $tab) { $url = $this->tabURL($tab); if($this->currentTab() == $tab) { $class = 'class="active"'; |