Commit fb7ebf2f authored by Dries's avatar Dries
Browse files

- Patch #36676 by breyten et al: don't require slogin for sending pings.

parent 900ad2b0
......@@ -36,9 +36,9 @@ function ping_help($section) {
function ping_cron() {
global $base_url;
if (variable_get('site_name', 0) && variable_get('site_slogan', 0)) {
if (variable_get('site_name', 0)) {
if (db_num_rows(db_query("SELECT nid FROM {node} WHERE status = 1 AND (created > '". variable_get('cron_last', time()) ."' OR changed > '". variable_get('cron_last', time()) ."')"))) {
_ping_notify(variable_get('site_name', '') .' - '. variable_get('site_slogan', ''), $base_url);
_ping_notify(variable_get('site_name', ''), $site_title, $base_url);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment