diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-05-09 22:46:05 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-05-09 22:46:05 +0000 |
commit | 49304b34aaeec6ff867b4af60372b9aa33585d1e (patch) | |
tree | 1cb7aaa2653b504890a03d13ed2e3adb1374287c /modules | |
parent | e4738f1a9238c9cec18942ee4cafeced6d2aa733 (diff) | |
download | brdo-49304b34aaeec6ff867b4af60372b9aa33585d1e.tar.gz brdo-49304b34aaeec6ff867b4af60372b9aa33585d1e.tar.bz2 |
- Fixing patch for aggregator block id fix.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/aggregator.module | 6 | ||||
-rw-r--r-- | modules/aggregator/aggregator.module | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module index 9e8b98955..a6e2f34a8 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -209,7 +209,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) { } } else if ($op == 'configure') { - list($type, $id) = split(':', $delta); + list($type, $id) = explode('-', $delta); if ($type == 'category') { $value = db_result(db_query('SELECT block FROM {aggregator_category} WHERE cid = %d', $id)); } @@ -221,7 +221,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) { return $output; } else if ($op == 'save') { - list($type, $id) = split(':', $delta); + list($type, $id) = explode('-', $delta); if ($type == 'category') { $value = db_query('UPDATE {aggregator_category} SET block = %d WHERE cid = %d', $edit['block'], $id); } @@ -230,7 +230,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) { } } else if ($op == 'view') { - list($type, $id) = split(':', $delta); + list($type, $id) = explode('-', $delta); switch ($type) { case 'feed': if ($feed = db_fetch_object(db_query('SELECT fid, title, block FROM {aggregator_feed} WHERE fid = %d', $id))) { diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 9e8b98955..a6e2f34a8 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -209,7 +209,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) { } } else if ($op == 'configure') { - list($type, $id) = split(':', $delta); + list($type, $id) = explode('-', $delta); if ($type == 'category') { $value = db_result(db_query('SELECT block FROM {aggregator_category} WHERE cid = %d', $id)); } @@ -221,7 +221,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) { return $output; } else if ($op == 'save') { - list($type, $id) = split(':', $delta); + list($type, $id) = explode('-', $delta); if ($type == 'category') { $value = db_query('UPDATE {aggregator_category} SET block = %d WHERE cid = %d', $edit['block'], $id); } @@ -230,7 +230,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) { } } else if ($op == 'view') { - list($type, $id) = split(':', $delta); + list($type, $id) = explode('-', $delta); switch ($type) { case 'feed': if ($feed = db_fetch_object(db_query('SELECT fid, title, block FROM {aggregator_feed} WHERE fid = %d', $id))) { |