mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-18 03:37:35 +01:00
Dont write catalogs if use_read_php
This commit is contained in:
parent
a7d4614a3e
commit
f8318d3425
@ -17,15 +17,18 @@
|
||||
$boards = explode(' ', $settings['boards']);
|
||||
}
|
||||
|
||||
if ($action == 'all') {
|
||||
foreach ($boards as $board) {
|
||||
if (!$config['use_read_php']) {
|
||||
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->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->build($settings, $board);
|
||||
} elseif ($action == 'read_php') {
|
||||
}
|
||||
if ($action == 'read_php') {
|
||||
$b = new Catalog();
|
||||
return $b->build($settings, $board, true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user