Themes edit: Split "post" into two seperate actions: "post" (replies) and "post-thread". And add a $board variable.

This commit is contained in:
Michael Foster 2013-07-18 12:06:26 -04:00
parent de4b5b3962
commit e4bd9a6886
9 changed files with 44 additions and 39 deletions

View file

@ -1,7 +1,7 @@
<?php
require 'info.php';
function sitemap_build($action, $settings) {
function sitemap_build($action, $settings, $board) {
global $config;
// Possible values for $action:
@ -9,6 +9,10 @@
// - news (news has been updated)
// - boards (board list changed)
// - post (a post has been made)
// - thread (a thread has been made)
if ($action != 'post' && $action != 'post-thread')
return;
$boards = explode(' ', $settings['boards']);