# HG changeset patch # User Dirk Haun # Date 1254169230 -7200 # Node ID fdb273c78589dd6ee7650f69f06d57bb7a59dc81 # Parent db4c6eb6e84390d61fac84bf6c71d54dc270416b Added an icon to make the plugin update option somewhat more obvious diff -r db4c6eb6e843 -r fdb273c78589 language/english.php --- a/language/english.php Sun Sep 27 21:26:06 2009 +0200 +++ b/language/english.php Mon Sep 28 22:20:30 2009 +0200 @@ -1065,6 +1065,7 @@ 39 => 'Upload a plugin', 40 => 'You can upload a plugin archive (.tar.gz, .tgz, .zip) directly here:', 41 => 'Upload', + 42 => 'Click to update', // to match the PHP error constants, // http://www.php.net/manual/en/features.file-upload.errors.php diff -r db4c6eb6e843 -r fdb273c78589 language/english_utf-8.php --- a/language/english_utf-8.php Sun Sep 27 21:26:06 2009 +0200 +++ b/language/english_utf-8.php Mon Sep 28 22:20:30 2009 +0200 @@ -1065,6 +1065,7 @@ 39 => 'Upload a plugin', 40 => 'You can upload a plugin archive (.tar.gz, .tgz, .zip) directly here:', 41 => 'Upload', + 42 => 'Click to update', // to match the PHP error constants, // http://www.php.net/manual/en/features.file-upload.errors.php diff -r db4c6eb6e843 -r fdb273c78589 public_html/admin/plugins.php --- a/public_html/admin/plugins.php Sun Sep 27 21:26:06 2009 +0200 +++ b/public_html/admin/plugins.php Mon Sep 28 22:20:30 2009 +0200 @@ -1165,17 +1165,23 @@ // MAIN $display = ''; -if (isset($_POST['pluginenabler']) && SEC_checkToken()) { - if (isset($_POST['enabledplugins'])) { - changePluginStatus($_POST['enabledplugins']); - } else { - changePluginStatus(array()); +if (isset($_POST['pluginenabler'])) { // JavaScript-triggered POST request + if (isset($_POST['updatethisplugin'])) { + // translate into a standard update request (see below) + $_POST['mode'] = $LANG32[34]; + $_POST['pi_name'] = $_POST['updatethisplugin']; + } elseif (SEC_checkToken()) { + if (isset($_POST['enabledplugins'])) { + changePluginStatus($_POST['enabledplugins']); + } else { + changePluginStatus(array()); + } + + // force a refresh so that the information of the plugin that was just + // enabled / disabled (menu entries, etc.) is displayed properly + header('Location: ' . $_CONF['site_admin_url'] . '/plugins.php'); + exit; } - - // force a refresh so that the information of the plugin that was just - // enabled / disabled (menu entries, etc.) is displayed properly - header('Location: ' . $_CONF['site_admin_url'] . '/plugins.php'); - exit; } $mode = ''; diff -r db4c6eb6e843 -r fdb273c78589 public_html/docs/english/theme.html --- a/public_html/docs/english/theme.html Sun Sep 27 21:26:06 2009 +0200 +++ b/public_html/docs/english/theme.html Mon Sep 28 22:20:30 2009 +0200 @@ -198,6 +198,9 @@

Theme changes in Geeklog 1.6.1