Only show local public notices in sitemap
Only show local public notices in sitemap. Only do counts for them in the sitemap index, and only show them in the notice sitemap.
This commit is contained in:
父節點
6d39a75137
當前提交
3a34d7e4ea
@ -208,6 +208,7 @@ class Sitemap_notice_count extends Memcached_DataObject
|
||||
{
|
||||
$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;
|
||||
|
@ -105,7 +105,7 @@ class NoticesitemapAction extends SitemapAction
|
||||
$notice->whereAdd("created >= '$begindt'");
|
||||
$notice->whereAdd("created < '$enddt'");
|
||||
|
||||
$notice->whereAdd('is_local != 0');
|
||||
$notice->whereAdd('is_local = ' . Notice::LOCAL_PUBLIC);
|
||||
|
||||
$notice->orderBy('created');
|
||||
|
||||
|
載入中…
x
新增問題並參考
Block a user