forked from GithubBackups/vichan
require "inc/instance-config.php", not "instance-config.php"
This commit is contained in:
parent
fcafdf61f5
commit
2ceb01b685
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
require 'config.php';
|
require 'config.php';
|
||||||
if (file_exists('inc/instance-config.php')) {
|
if (file_exists('inc/instance-config.php')) {
|
||||||
require 'instance-config.php';
|
require 'inc/instance-config.php';
|
||||||
}
|
}
|
||||||
if(isset($board['dir']) && file_exists($board['dir'] . '/config.php')) {
|
if(isset($board['dir']) && file_exists($board['dir'] . '/config.php')) {
|
||||||
require $board['dir'] . '/config.php';
|
require $board['dir'] . '/config.php';
|
||||||
@ -259,6 +259,7 @@
|
|||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
if(preg_match('/^remote:\/\/(.+)\:(.+)$/', $path, $m)) {
|
if(preg_match('/^remote:\/\/(.+)\:(.+)$/', $path, $m)) {
|
||||||
|
|
||||||
if(isset($config['remote'][$m[1]])) {
|
if(isset($config['remote'][$m[1]])) {
|
||||||
require_once 'inc/remote.php';
|
require_once 'inc/remote.php';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user