summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-07 07:12:52 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-07 07:12:52 +0000
commit9852b3a70cad5cb04323f7d3091337214e38f66f (patch)
tree366d5925f89a03a87ecfc9fcc0bdfd970522816e
parenta8576b12f34cfb09d0a94d920d0effb35fab3c03 (diff)
downloadbrdo-9852b3a70cad5cb04323f7d3091337214e38f66f.tar.gz
brdo-9852b3a70cad5cb04323f7d3091337214e38f66f.tar.bz2
Oops. Reverting aggregator stuff that I didn't mean to commit.
-rw-r--r--modules/aggregator/aggregator.admin.inc3
-rw-r--r--modules/aggregator/aggregator.test2
2 files changed, 2 insertions, 3 deletions
diff --git a/modules/aggregator/aggregator.admin.inc b/modules/aggregator/aggregator.admin.inc
index 32e0cc12d..c7012598c 100644
--- a/modules/aggregator/aggregator.admin.inc
+++ b/modules/aggregator/aggregator.admin.inc
@@ -361,8 +361,7 @@ function _aggregator_parse_opml($opml) {
if ($entry['tag'] == 'OUTLINE' && isset($entry['attributes'])) {
$item = $entry['attributes'];
if (!empty($item['XMLURL'])) {
- $title = isset($item['TEXT']) ? $item['TEXT'] : $item['XMLURL'];
- $feeds[] = array('title' => $title, 'url' => $item['XMLURL']);
+ $feeds[] = array('title' => $item['TEXT'], 'url' => $item['XMLURL']);
}
}
}
diff --git a/modules/aggregator/aggregator.test b/modules/aggregator/aggregator.test
index fa39ecf52..11fc75dcd 100644
--- a/modules/aggregator/aggregator.test
+++ b/modules/aggregator/aggregator.test
@@ -585,7 +585,7 @@ class ImportOPMLTestCase extends AggregatorTestCase {
$this->assertRaw(t('A feed named %title already exists.', array('%title' => $feeds[1]['title'])), t('Verifying that a duplicate title was identified'));
$after = db_query('SELECT COUNT(*) FROM {aggregator_feed}')->fetchField();
- $this->assertEqual($after, 3, t('Verifying that three distinct feeds were added.'));
+ $this->assertEqual($after, 2, t('Verifying that two distinct feeds were added.'));
$feeds_from_db = db_query("SELECT f.title, f.url, f.refresh, cf.cid FROM {aggregator_feed} f LEFT JOIN {aggregator_category_feed} cf ON f.fid = cf.fid");
$refresh = $category = TRUE;