load gallery module before the rest of the modules, fix corresponding test

This commit is contained in:
Bradley W Dutton
2020-11-30 19:02:44 -08:00
parent 9695259d4b
commit 3f3e64511b
2 changed files with 3 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
<?php defined("SYSPATH") or die("No direct script access.");
<?php
/**
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2013 Bharat Mediratta
@@ -39,6 +39,7 @@ function getfiles( $path , &$files = array() ) {
$preload_dirs = [
'application',
'system',
'modules/gallery',
'modules',
'themes',
];

View File

@@ -181,6 +181,7 @@ class File_Structure_Test extends Gallery_Unit_Test_Case {
// SWF wrappers - directly accessible
break;
case DOCROOT . "lib/preload_opcache.php":
case DOCROOT . "local.php":
// Special case optional file, not part of the codebase
break;