From 2bfc7912662ae221a5ade5c4e06457c5372c872f Mon Sep 17 00:00:00 2001 From: discomrade Date: Mon, 12 Jul 2021 02:35:40 -0200 Subject: [PATCH] Extract bad defaults to instance-config.php, from https://github.com/towards-a-new-leftypol/leftypol_lainchan/commit/77f3bf0d1693a1f531cf0a2b04e966c5f30c95eb, updates documentation --- inc/config.php | 9 ++++++--- inc/instance-config.php | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/inc/config.php b/inc/config.php index 9190d233..19a491ee 100644 --- a/inc/config.php +++ b/inc/config.php @@ -700,8 +700,11 @@ * ==================== */ // Maximum number of images allowed. Increasing this number enabled multi image. - // If you make it more than 1, make sure to enable the below script for the post form to change. - $config['max_images'] = 4; + // If you make it more than 1, make sure to enable one of the below scripts for the post form to change. + // $config['additional_javascript'][] = 'js/multi-image.js'; + // or + // $config['additional_javascript'][] = 'js/file-selector.js'; + $config['max_images'] = 1; // Method to use for determing the max filesize. // "split" means that your max filesize is split between the images. For example, if your max filesize @@ -1714,7 +1717,7 @@ //$config['search']['boards'] = array('a', 'b', 'c', 'd', 'e'); // Enable public logs? 0: NO, 1: YES, 2: YES, but drop names - $config['public_logs'] = 1; + $config['public_logs'] = 0; /* * ==================== diff --git a/inc/instance-config.php b/inc/instance-config.php index 2e181e54..d47a6294 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -161,6 +161,9 @@ $config['mod']['news_page'] = 5; // Allow everyone to see bumplocks $config['mod']['view_bumplock'] = -1; +// Include public logs with names +$config['public_logs'] = 1; + $config['allow_thread_deletion'] = false; // Max attachments per post