@@ -164,7 +164,7 @@ function contact_user_page($account) {
$output=t("You cannot send more than %number messages per hour. Please try again later.",array('%number'=>variable_get('contact_hourly_threshold',3)));
* Callback for the 'votes' tab for polls you can see other votes on
*/
functionpoll_votes($node){
drupal_set_title(check_plain($node->title));
drupal_set_title($node->title);
$output=t('This table lists all the recorded votes for this poll. If anonymous users are allowed to vote, they will be identified by the IP address of the computer they used when they voted.');
drupal_set_title(t('Top pages in the past %interval',array('%interval'=>format_interval(variable_get('statistics_flush_accesslog_timer',259200)))));
drupal_set_title(t('Top pages in the past %interval',array('%interval'=>format_interval(variable_get('statistics_flush_accesslog_timer',259200)))),PASS_THROUGH);
$output=theme('table',$header,$rows);
$output.=theme('pager',NULL,30,0);
return$output;
...
...
@@ -97,7 +97,7 @@ function statistics_top_visitors() {
drupal_set_title(t('Top visitors in the past %interval',array('%interval'=>format_interval(variable_get('statistics_flush_accesslog_timer',259200)))));
drupal_set_title(t('Top visitors in the past %interval',array('%interval'=>format_interval(variable_get('statistics_flush_accesslog_timer',259200)))),PASS_THROUGH);
$output=theme('table',$header,$rows);
$output.=theme('pager',NULL,30,0);
return$output;
...
...
@@ -109,7 +109,7 @@ function statistics_top_visitors() {
functionstatistics_top_referrers(){
$query="SELECT url, COUNT(url) AS hits, MAX(timestamp) AS last FROM {accesslog} WHERE url NOT LIKE :host AND url <> '' GROUP BY url";
$query_cnt="SELECT COUNT(DISTINCT(url)) FROM {accesslog} WHERE url <> '' AND url NOT LIKE :host";
drupal_set_title(t('Top referrers in the past %interval',array('%interval'=>format_interval(variable_get('statistics_flush_accesslog_timer',259200)))));
drupal_set_title(t('Top referrers in the past %interval',array('%interval'=>format_interval(variable_get('statistics_flush_accesslog_timer',259200)))),PASS_THROUGH);
// When viewed from user/%user/track, display the name of the user
// as page title -- the tab title remains Track so this needs to be done
// here and not in the menu definiton.
drupal_set_title(check_plain($account->name));
drupal_set_title($account->name);
}
// TODO: These queries are very expensive, see http://drupal.org/node/105639
$sql='SELECT DISTINCT(n.nid), n.title, n.type, n.changed, n.uid, u.name, GREATEST(n.changed, l.last_comment_timestamp) AS last_updated, l.comment_count FROM {node} n INNER JOIN {node_comment_statistics} l ON n.nid = l.nid INNER JOIN {users} u ON n.uid = u.uid LEFT JOIN {comments} c ON n.nid = c.nid AND (c.status = %d OR c.status IS NULL) WHERE n.status = 1 AND (n.uid = %d OR c.uid = %d) ORDER BY last_updated DESC';