[geeklog-cvs] geeklog: Source code cosmetics
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Oct 31 12:05:31 EDT 2009
changeset 7411:7af245e1a2ae
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/7af245e1a2ae
user: Dirk Haun <dirk at haun-online.de>
date: Sat Oct 31 11:28:04 2009 +0100
description:
Source code cosmetics
diffstat:
public_html/admin/block.php | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r b07ac3dba962 -r 7af245e1a2ae public_html/admin/block.php
--- a/public_html/admin/block.php Sat Oct 31 09:52:30 2009 +0100
+++ b/public_html/admin/block.php Sat Oct 31 11:28:04 2009 +0100
@@ -642,6 +642,7 @@
function reorderblocks()
{
global $_TABLES;
+
$sql = "SELECT * FROM {$_TABLES['blocks']} ORDER BY onleft asc, blockorder asc;";
$result = DB_query($sql);
$nrows = DB_numRows($result);
@@ -670,13 +671,13 @@
/**
* Move blocks UP, Down and Switch Sides - Left and Right
*
+* NOTE: Does not return.
+*
*/
function moveBlock()
{
global $_CONF, $_TABLES, $LANG21;
- $retval = '';
-
$bid = COM_applyFilter($_GET['bid']);
$where = COM_applyFilter($_GET['where']);
@@ -705,9 +706,8 @@
} else {
COM_errorLog("block admin error: Attempt to move an non existing block id: $bid");
}
- echo COM_refresh($_CONF['site_admin_url'] . "/block.php");
+ echo COM_refresh($_CONF['site_admin_url'] . '/block.php');
exit;
- return $retval;
}
More information about the geeklog-cvs
mailing list