summaryrefslogtreecommitdiff
path: root/modules/statistics
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-09 21:54:01 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-09 21:54:01 +0000
commit147bb1389a18eca73015390cc46a5fe03abfcb88 (patch)
treec5798ac604e5fd2ded01f15db2f0e422b4077abb /modules/statistics
parent364238c585cb3c2f64b99a385c577f174cdf1f39 (diff)
downloadbrdo-147bb1389a18eca73015390cc46a5fe03abfcb88.tar.gz
brdo-147bb1389a18eca73015390cc46a5fe03abfcb88.tar.bz2
#571654 follow-up by chx, peximo, plach, sun, et al:
Roll-back of node titles as fields. The Entity Translation module in contrib can add this back, but for everyone else it creates a *huge* WTF. Apologies for how late this is coming, but better now than post-alpha. :\
Diffstat (limited to 'modules/statistics')
-rw-r--r--modules/statistics/statistics.pages.inc2
-rw-r--r--modules/statistics/statistics.test2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/statistics/statistics.pages.inc b/modules/statistics/statistics.pages.inc
index 01d902932..545dc137c 100644
--- a/modules/statistics/statistics.pages.inc
+++ b/modules/statistics/statistics.pages.inc
@@ -38,7 +38,7 @@ function statistics_node_tracker() {
);
}
- drupal_set_title($node->title[LANGUAGE_NONE][0]['value']);
+ drupal_set_title($node->title);
$build['statistics_table'] = array(
'#theme' => 'table',
'#header' => $header,
diff --git a/modules/statistics/statistics.test b/modules/statistics/statistics.test
index 83f45bd79..e8d0ae8ce 100644
--- a/modules/statistics/statistics.test
+++ b/modules/statistics/statistics.test
@@ -119,7 +119,7 @@ class StatisticsReportsTestCase extends StatisticsTestCase {
$this->assertText('All time', t('Found the alll time popular content.'));
$this->assertText('Last viewed', t('Found the last viewed popular content.'));
- $this->assertRaw(l($node->title[LANGUAGE_NONE][0]['value'], 'node/' . $node->nid), t('Found link to visited node.'));
+ $this->assertRaw(l($node->title, 'node/' . $node->nid), t('Found link to visited node.'));
}
}