Only show local public notices in sitemap. Only do counts for them
in the sitemap index, and only show them in the notice sitemap.
{
$notice = new Notice();
$notice->whereAdd('created BETWEEN "'.$d.' 00:00:00" AND "'.self::incrementDay($d).' 00:00:00"');
+ $notice->whereAdd('is_local = ' . Notice::LOCAL_PUBLIC);
$n = $notice->count();
return $n;
$notice->whereAdd("created >= '$begindt'");
$notice->whereAdd("created < '$enddt'");
- $notice->whereAdd('is_local != 0');
+ $notice->whereAdd('is_local = ' . Notice::LOCAL_PUBLIC);
$notice->orderBy('created');