diff options
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 1457cfdc1..b8eb22d4c 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -785,10 +785,10 @@ function node_search($op = 'search', $keys = NULL) { $ranking = array('node_rank_relevance' => t('Keyword relevance'), 'node_rank_recent' => t('Recently posted')); - if (module_exist('comment')) { + if (module_exists('comment')) { $ranking['node_rank_comments'] = t('Number of comments'); } - if (module_exist('statistics') && variable_get('statistics_count_content_views', 0)) { + if (module_exists('statistics') && variable_get('statistics_count_content_views', 0)) { $ranking['node_rank_views'] = t('Number of views'); } @@ -846,7 +846,7 @@ function node_search($op = 'search', $keys = NULL) { $join2 .= ' INNER JOIN {node} n ON n.nid = i.sid LEFT JOIN {node_comment_statistics} c ON c.nid = i.sid'; $stats_join = TRUE; } - if (module_exist('comment') && $weight = (int)variable_get('node_rank_comments', 5)) { + if (module_exists('comment') && $weight = (int)variable_get('node_rank_comments', 5)) { // Inverse law that maps the highest reply count on the site to 1 and 0 to 0. $scale = variable_get('node_cron_comments_scale', 0.0); $ranking[] = '%d * (2.0 - 2.0 / (1.0 + c.comment_count * %f))'; @@ -856,7 +856,7 @@ function node_search($op = 'search', $keys = NULL) { $join2 .= ' LEFT JOIN {node_comment_statistics} c ON c.nid = i.sid'; } } - if (module_exist('statistics') && variable_get('statistics_count_content_views', 0) && + if (module_exists('statistics') && variable_get('statistics_count_content_views', 0) && $weight = (int)variable_get('node_rank_views', 5)) { // Inverse law that maps the highest view count on the site to 1 and 0 to 0. $scale = variable_get('node_cron_views_scale', 0.0); @@ -1011,7 +1011,7 @@ function node_menu($may_cache) { $items[] = array('path' => 'admin/content/node/overview', 'title' => t('list'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); - if (module_exist('search')) { + if (module_exists('search')) { $items[] = array('path' => 'admin/content/search', 'title' => t('search posts'), 'description' => t('Search posts by keyword.'), 'callback' => 'node_admin_search', |