RCS file: /cvs/drupal-contrib/contributions/modules/xmlsitemap/xmlsitemap/Attic/xmlsitemap.module,v
retrieving revision 1.1.2.111
diff -u -p -r1.1.2.111 xmlsitemap.module
--- xmlsitemap.module	10 May 2009 11:18:31 -0000	1.1.2.111
+++ xmlsitemap.module	10 May 2009 12:20:14 -0000
@@ -261,6 +261,7 @@ function xmlsitemap_delete_cache_files()
   }
   file_scan_directory($parent_directory, 'xsm-.*\.xml', array('.', '..', 'CVS'), 'unlink', FALSE);
   xmlsitemap_flag_sitemap();
+  watchdog('xmlsitemap', 'The sitemap cache files have been deleted.');
   return;
 }
 
@@ -274,17 +275,17 @@ function xmlsitemap_flag_sitemap() {
   if (!variable_get('xmlsitemap_sitemap_needs_update', FALSE)) {
     variable_set('xmlsitemap_sitemap_needs_update', TRUE);
   }
+  watchdog('xmlsitemap', 'The sitemap has been flagged as needing to be updated.');
 }
 
 /**
  * Return the number of links present in xmlsitemap table.
  */
 function xmlsitemap_link_count() {
-  static $link_count;
-  if (empty($link_count)) {
+  static $link_count = 0;
+  if (!$link_count) {
     if (!db_table_exists('xmlsitemap')) {
-      $link_count = 0;
-      watchdog('xmlsitemap', 'The <em>xmlsitemap</em> database table does not exist; verify that you correctly installed <em>XML sitemap</em>.', array(), WATCHDOG_ERROR);
+      watchdog('xmlsitemap', 'The <em>xmlsitemap</em> database table does not exist.', array(), WATCHDOG_ERROR);
     }
     else {
       $link_count = db_result(db_query("SELECT COUNT(xsm.loc)". xmlsitemap_sitemap_query()));

