forked from GithubBackups/vichan
Dont write catalogs if use_read_php
This commit is contained in:
parent
a7d4614a3e
commit
f8318d3425
@ -17,15 +17,18 @@
|
|||||||
$boards = explode(' ', $settings['boards']);
|
$boards = explode(' ', $settings['boards']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'all') {
|
if (!$config['use_read_php']) {
|
||||||
foreach ($boards as $board) {
|
if ($action == 'all') {
|
||||||
|
foreach ($boards as $board) {
|
||||||
|
$b = new Catalog();
|
||||||
|
$b->build($settings, $board);
|
||||||
|
}
|
||||||
|
} elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete') && (in_array($board, $boards) | $settings['all'])) {
|
||||||
$b = new Catalog();
|
$b = new Catalog();
|
||||||
$b->build($settings, $board);
|
$b->build($settings, $board);
|
||||||
}
|
}
|
||||||
} elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete') && (in_array($board, $boards) | $settings['all'])) {
|
}
|
||||||
$b = new Catalog();
|
if ($action == 'read_php') {
|
||||||
$b->build($settings, $board);
|
|
||||||
} elseif ($action == 'read_php') {
|
|
||||||
$b = new Catalog();
|
$b = new Catalog();
|
||||||
return $b->build($settings, $board, true);
|
return $b->build($settings, $board, true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user