Browse Source

retab

pull/40/head
towards_a_new_leftypol 4 years ago
committed by towards-a-new-leftypol
parent
commit
740abd82d7
  1. 8
      templates/themes/catalog/theme.php

8
templates/themes/catalog/theme.php

@ -1,8 +1,10 @@
<?php
require 'info.php';
require_once 'inc/anti-bot.php'; // DELETE ME THIS IS FOR print_err function only!
function catalog_build($action, $settings, $board) {
global $config;
print_err("catalog_build");
$b = new Catalog($settings);
$boards = explode(' ', $settings['boards']);
@ -38,7 +40,6 @@
elseif ($action == 'rebuild') {
$b->build($settings, $board);
}
}
// FIXME: Check that Ukko is actually enabled
if ($settings['enable_ukko'] && (
@ -132,6 +133,7 @@
*/
public function buildUkko2() {
global $config;
print_err("Catalog.buildUkko2");
$ukkoSettings = themeSettings('ukko2');
$queries = array();
$threads = array();
@ -170,6 +172,7 @@
*/
public function buildUkko3() {
global $config;
print_err("Catalog.buildUkko3");
$ukkoSettings = themeSettings('ukko3');
$queries = array();
@ -209,6 +212,7 @@
*/
public function buildUkko4() {
global $config;
print_err("Catalog.buildUkko4");
$ukkoSettings = themeSettings('ukko4');
$queries = array();
@ -247,6 +251,7 @@
*/
public function buildRand() {
global $config;
print_err("Catalog.buildRand");
$randSettings = themeSettings('rand');
$queries = array();
@ -286,6 +291,7 @@
*/
public function build($settings, $board_name) {
global $config, $board;
print_err("Catalog.build");
if ($board['uri'] != $board_name) {
if (!openBoard($board_name)) {
error(sprintf(_("Board %s doesn't exist"), $board_name));

Loading…
Cancel
Save