[geeklog-cvs] geeklog: Added images in for the new feature for the plugin order
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Jan 27 11:28:43 EST 2011
changeset 8077:0461fc261a72
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/0461fc261a72
user: Tom <websitemaster at cogeco.net>
date: Thu Jan 27 11:24:25 2011 -0500
description:
Added images in for the new feature for the plugin order
diffstat:
public_html/admin/plugins.php | 34 +++++++-------
public_html/layout/professional/images/admin/down.png | 0
public_html/layout/professional/images/admin/up.png | 0
public_html/layout/professional_css/images/admin/down.png | 0
public_html/layout/professional_css/images/admin/up.png | 0
5 files changed, 17 insertions(+), 17 deletions(-)
diffs (54 lines):
diff -r 1e5441342ba0 -r 0461fc261a72 public_html/admin/plugins.php
--- a/public_html/admin/plugins.php Wed Jan 26 15:50:29 2011 +0000
+++ b/public_html/admin/plugins.php Thu Jan 27 11:24:25 2011 -0500
@@ -564,25 +564,25 @@
if (DB_numRows($q) == 1) { // if the plugin exists
$query = '';
switch ($where) {
- case ("up"):
- $A = DB_fetchArray($q);
- if ($A['pi_load'] > 10) { // no negative values
- $query = "UPDATE {$_TABLES['plugins']} SET pi_load = pi_load-11 WHERE pi_name = '{$pi_name}'";
- }
- break;
+ case "up":
+ $A = DB_fetchArray($q);
+ if ($A['pi_load'] > 10) { // no negative values
+ $query = "UPDATE {$_TABLES['plugins']} SET pi_load = pi_load-11 WHERE pi_name = '{$pi_name}'";
+ }
+ break;
- case ("dn"):
- $query = "UPDATE {$_TABLES['plugins']} SET pi_load = pi_load+11 WHERE pi_name = '{$pi_name}'";
- break;
+ case "dn":
+ $query = "UPDATE {$_TABLES['plugins']} SET pi_load = pi_load+11 WHERE pi_name = '{$pi_name}'";
+ break;
- default:
- if (is_numeric($where) && $where >= 0 && $where <= 10000) {
- $where = (int)$where;
- $query = "UPDATE {$_TABLES['plugins']} SET pi_load = {$where} WHERE pi_name = '{$pi_name}'";
- } else {
- COM_errorLog("plugins admin error: Attempt to assign an invalid load order '$where' to plugin '$pi_name'");
- }
- break;
+ default:
+ if (is_numeric($where) && $where >= 0 && $where <= 10000) {
+ $where = (int)$where;
+ $query = "UPDATE {$_TABLES['plugins']} SET pi_load = {$where} WHERE pi_name = '{$pi_name}'";
+ } else {
+ COM_errorLog("plugins admin error: Attempt to assign an invalid load order '$where' to plugin '$pi_name'");
+ }
+ break;
}
if (!empty($query)) {
DB_query($query);
diff -r 1e5441342ba0 -r 0461fc261a72 public_html/layout/professional/images/admin/down.png
Binary file public_html/layout/professional/images/admin/down.png has changed
diff -r 1e5441342ba0 -r 0461fc261a72 public_html/layout/professional/images/admin/up.png
Binary file public_html/layout/professional/images/admin/up.png has changed
diff -r 1e5441342ba0 -r 0461fc261a72 public_html/layout/professional_css/images/admin/down.png
Binary file public_html/layout/professional_css/images/admin/down.png has changed
diff -r 1e5441342ba0 -r 0461fc261a72 public_html/layout/professional_css/images/admin/up.png
Binary file public_html/layout/professional_css/images/admin/up.png has changed
More information about the geeklog-cvs
mailing list