From fedd542e7a9d861eb0dccb20ffa53e9c0a72b843 Mon Sep 17 00:00:00 2001
From: chris <chris@jalakai.co.uk>
Date: Mon, 30 Jan 2006 23:27:20 +0100
Subject: [PATCH] plugin manager update - remove refresh command, strings &
 associated html

darcs-hash:20060130222720-9b6ab-2c71b10602e0052050c5813f5b7b6c02d386b229.gz
---
 lib/plugins/plugin/admin.php        | 31 ++---------------------------
 lib/plugins/plugin/lang/en/lang.php | 25 ++++++++++++-----------
 2 files changed, 15 insertions(+), 41 deletions(-)

diff --git a/lib/plugins/plugin/admin.php b/lib/plugins/plugin/admin.php
index 4c6621c15..baccc40c5 100644
--- a/lib/plugins/plugin/admin.php
+++ b/lib/plugins/plugin/admin.php
@@ -32,7 +32,7 @@ class admin_plugin_plugin extends DokuWiki_Admin_Plugin {
     var $handler = NULL;
     
     var $functions = array('delete','update',/*'settings',*/'info');  // require a plugin name
-    var $commands = array('manage','refresh','download');         // don't require a plugin name
+    var $commands = array('manage','download');                       // don't require a plugin name
     var $plugin_list = array();
     
     var $msg = '';
@@ -164,12 +164,6 @@ class ap_manage {
           ptln('      <input type="hidden" name="page" value="plugin" />');
           ptln('    </fieldset>');
           ptln('    <fieldset>');
-          ptln('      <legend>'.$this->lang['refresh'].'</legend>');
-          ptln('      <h3 class="legend">'.$this->lang['refresh'].'</h3>');
-          ptln('      <input type="submit" class="button" name="fn[refresh]" value="'.$this->lang['btn_refresh'].'" />');
-          ptln('      <p>'.$this->lang['refresh_x'].'</p>');
-          ptln('    </fieldset>');
-          ptln('    <fieldset>');
           ptln('      <legend>'.$this->lang['download'].'</legend>');
           ptln('      <h3 class="legend">'.$this->lang['download'].'</h3>');
           ptln('      <input type="submit" class="button" name="fn[download]" value="'.$this->lang['btn_download'].'" />');
@@ -340,28 +334,7 @@ class ap_manage {
             return '';
         }
     }
-    
-    class ap_refresh extends ap_manage {
-    
-        function process() {
-            $this->refresh();
-            
-            if (!$this->manager->error) return $this->lang['refreshed'];
-        }
-        
-        function html() {
-        
-            parent::html();
-            
-            ptln('<div class="pm_info">');
-            ptln('<h2>'.$this->lang['refreshing'].'</h2>');
-            ptln('<p>'.$this->lang['refreshed'].'</p>');
-            ptln('</div>');
-        }
-        
-
-    }
-    
+       
     class ap_download extends ap_manage {
     
         var $overwrite = false;
diff --git a/lib/plugins/plugin/lang/en/lang.php b/lib/plugins/plugin/lang/en/lang.php
index 2f0660b9f..b3ef217bd 100644
--- a/lib/plugins/plugin/lang/en/lang.php
+++ b/lib/plugins/plugin/lang/en/lang.php
@@ -8,17 +8,18 @@
 
 $lang['menu'] = 'Manage Plugins'; 
 
-$lang['refresh']          = "Refresh list of installed plugins";
-$lang['refresh_x']        = "Use this option if you have altered any of your plugins manually"; 
-$lang['download']         = "Download and install a new plugin";
-$lang['manage']           = "Installed Plugins";
+// custom language strings for the plugin
+$lang['refresh'] = "Refresh list of installed plugins";
+$lang['refresh_x'] = "Use this option if you have altered any of your plugins manually"; 
+$lang['download'] = "Download and install a new plugin";
+$lang['manage'] = "Installed Plugins";
 
-$lang['btn_info']         = 'Info';
-$lang['btn_update']       = 'Update';
-$lang['btn_delete']       = 'Delete';
-$lang['btn_settings']     = 'Settings';
-$lang['btn_refresh']      = 'Refresh';
-$lang['btn_download']     = 'Download';
+$lang['btn_info'] = 'info';
+$lang['btn_update'] = 'update';
+$lang['btn_delete'] = 'delete';
+$lang['btn_settings'] = 'settings';
+$lang['btn_refresh'] = 'Refresh';
+$lang['btn_download'] = 'Download';
 
 $lang['url']              = 'URL';
 
@@ -30,8 +31,8 @@ $lang['unknown']          = 'unknown';
 // ..ing = header message
 // ..ed = success message
 
-$lang['refreshing']       = 'Refreshing ...';
-$lang['refreshed']        = 'Plugin refresh completed.';
+$lang['refreshing'] = 'Refreshing ...';
+$lang['refreshed'] = 'Plugin refresh completed.';
 
 $lang['updating']         = 'Updating ...';
 $lang['updated']          = 'Plugin %s updated successfully';
-- 
GitLab