Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change tasks context column type from text to longtext #473

Open
wants to merge 143 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
37ff95f
update jquery to 1.12.4 and superfish dependency
bwdutton Jun 26, 2016
00c0539
make installer work with mysqli not just mysql
bwdutton Jun 8, 2017
bad663e
Add dropzone js uploader as a replacement for uploadify. The latter s…
bwdutton Nov 4, 2017
c832cb0
Merge branch 'master' of https://github.com/bwdutton/gallery3
bwdutton Nov 4, 2017
a44f17d
add box around actual dropzone
Nov 5, 2017
348b810
get rid of space above box
Nov 5, 2017
98291c8
add my movie_resized module along the maintenance script that creates…
bwdutton Nov 7, 2017
e280b31
a few more doc notes along with change to not run chown if no chown_u…
bwdutton Nov 7, 2017
3ed1d99
add widewind theme. I've been making small tweaks to this to work with
Nov 7, 2017
41e38c6
Merge branch 'master' of https://github.com/bwdutton/gallery3
Nov 7, 2017
d50e5a3
Update autorotate module to work with PHP 5.3 and higher
bwdutton Nov 8, 2017
47291f4
- initialize hash key as array so pass by ref works. This probably wo…
bwdutton Nov 9, 2017
cdc4e97
Make queries work with sql_mode = 'ONLY_FULL_GROUP_BY' enabled in mysql
bwdutton Feb 25, 2018
41e3c56
a better mysqli fix for the installer
bwdutton Feb 26, 2018
b7b95d9
update help text to point to the yahoo group
bwdutton Feb 26, 2018
d0c250f
call fetch_object on the result, not the db handle
bwdutton May 2, 2018
6746792
Drop short_tags
trasher Jan 28, 2018
5ee4d2f
Fix htaccess and installer
trasher May 19, 2018
3f466a4
work with php < 5.4
bwdutton Jul 18, 2018
dd88c34
move update checker to new URL
bwdutton Jan 11, 2019
e9a5d6e
increase mysql lock time a smidge as this seems to work better for a …
bwdutton Jan 19, 2019
e0aab60
update jquery-ui to a less old version 1.12.1
bwdutton Sep 11, 2019
893e444
Merge branch 'master' of https://github.com/bwdutton/gallery3
bwdutton Sep 11, 2019
9c6259b
fix broken admin comment nav links https://github.com/bwdutton/galler…
bwdutton Sep 11, 2019
f345cb0
fix mysql error when trying to order a grouped result without that co…
bwdutton Sep 14, 2019
be4c790
get rid of warnings/undefined vars
bwdutton Jan 15, 2020
99aa6b0
disable the slideshow module as cooliris is old and broken, and this …
bwdutton Feb 1, 2020
cbd36e9
update pointers in README
bwdutton Feb 1, 2020
fa6fd98
update travis build
bwdutton Feb 1, 2020
63435fc
completely remove old slideshow module, cooliris isn't coming back
bwdutton Feb 1, 2020
0078a7e
fix EOL spaces for travis
bwdutton Feb 1, 2020
db6a989
remove file that shouldn't have been committed
bwdutton Feb 1, 2020
d3c281d
more backup files that shouldn't have been committed
bwdutton Feb 1, 2020
761de1b
get the CI tests fully working again
bwdutton Feb 1, 2020
6a686d3
switch travis to php 7.0
bwdutton Feb 1, 2020
1cc5cb9
more travis testing
bwdutton Feb 1, 2020
e3f56a6
php 7 fixes
bwdutton Feb 2, 2020
63bd03f
Merge remote-tracking branch 'origin/master' into travis/test
bwdutton Feb 2, 2020
9686d68
only one item was deprecated, re-enable full tests
bwdutton Feb 2, 2020
6835d8c
set locale to en_US so time/number compares don't fail later on
bwdutton Feb 2, 2020
d2104fb
put back the old jquery-ui, some things are broken
bwdutton Feb 2, 2020
d83552d
Merge branch 'master' of https://github.com/bwdutton/gallery3
bwdutton Feb 2, 2020
b8b6ac9
fix php 7.3 errors
bwdutton Feb 2, 2020
1c83525
try php 5.6 & 7.3 builds
bwdutton Feb 2, 2020
053d8d0
try php 7.4
bwdutton Feb 2, 2020
680de0c
fix implode() so the separater is always the first argument
bwdutton Feb 2, 2020
746ed16
the gallery site now runs on SSL
bwdutton Feb 18, 2020
9cff0d8
Merge branch 'master' of https://github.com/bwdutton/gallery3
bwdutton Feb 18, 2020
6b2e661
PHP 5.6 not technically required yet but it's coming soon.
bwdutton Feb 25, 2020
e90a1d1
add support for docker/automated installs
bwdutton Feb 25, 2020
fd98447
fix substr logic in memory size checks, how did this go undetected be…
bwdutton Feb 29, 2020
b5ad286
add phpmailer module to replace default mail()
bwdutton Mar 1, 2020
7df9081
add note about db config for php 5 to 7 upgrade
bwdutton Mar 1, 2020
446e890
add standard header to config file
bwdutton Mar 1, 2020
9393d0d
Merge branch 'master' of https://github.com/bwdutton/gallery3
bwdutton Mar 1, 2020
cbd75bc
remove each() as it's deprecated
bwdutton Mar 1, 2020
6a7384c
remove the last of the each() calls
bwdutton Mar 1, 2020
6f360bc
add check if mysql module is configured but not installed. This is ca…
bwdutton Mar 29, 2020
34369f5
ditch tab spacing
bwdutton Mar 29, 2020
0393840
add basic instructions for phpmailer module
bwdutton Apr 11, 2020
967d838
remove magic function setting checks, PHP 7.4 drops these settings
bwdutton May 24, 2020
0280094
add redis support for sessions
bwdutton May 29, 2020
cf63f47
skip the vendor directory in tests
bwdutton May 29, 2020
f6da89d
fix formatting for tests
bwdutton May 29, 2020
b7074b5
Redis sessions not fully working
bwdutton Jun 4, 2020
a9bdaf1
installer is a directory, add /
bwdutton Jun 4, 2020
8be9001
add CLI password reset:
bwdutton Jun 4, 2020
9fc9c73
get rid of whitespace
bwdutton Jun 4, 2020
059dc6a
get rid of tabs
bwdutton Jun 4, 2020
f9c72a4
update error page help URLs
bwdutton Jun 13, 2020
787b674
when using invisible index.php make the admin screens work
bwdutton Jun 13, 2020
237d830
migrate to travis-ci.com
bwdutton Sep 16, 2020
8015eaa
fix ffmpeg time string for non-english locales
swurzinger Oct 4, 2020
0117732
Merge pull request #6 from swurzinger/stw/ffmpeg-time-string-fix
bwdutton Oct 5, 2020
62ec99d
add default apache settings for php7
bwdutton Oct 6, 2020
8a5a326
Merge pull request #1 from trasher/short_tags
bwdutton Oct 11, 2020
25149fa
short_tags not required any longer
bwdutton Oct 11, 2020
5bdfe35
some other files that need short tags removed
bwdutton Oct 11, 2020
78b31ac
update README to indicate short tags no longer required
bwdutton Oct 11, 2020
1461124
update Security section, add not to use PHP 7
bwdutton Oct 11, 2020
1f45094
read protocol from the config file
Nov 14, 2020
b09be3c
by default read domain/protocol from env (used by docker)
Nov 14, 2020
bb0eeb3
add help notes for password reset
Nov 14, 2020
3f64fcd
update composer dependencies
Nov 21, 2020
aa74cef
add generic opcache preloader for PHP 7.4 docker container
Nov 28, 2020
3a755d3
get rid of really old array syntax
Dec 1, 2020
1680012
add preamble to make tests happy
Dec 1, 2020
03e9ef7
update Pel dependency and move it to composer
Dec 1, 2020
9695259
add notes about which modules require composer
Dec 1, 2020
3f3e645
load gallery module before the rest of the modules, fix corresponding…
Dec 1, 2020
c8397c5
tweak opcache preload a bit
Dec 1, 2020
630454a
site_domain can be a full_url, handle that case better if no site_pro…
bwdutton Feb 15, 2021
e3dc6b0
handle full URL comparison better for proxy access checks
bwdutton Feb 15, 2021
96081ac
new no_htaccess setting with basic nginx check
bwdutton Feb 15, 2021
faa69d2
use the standard video tag to render videos
bwdutton Feb 18, 2021
fb32154
fix CI
bwdutton Feb 18, 2021
5fc15ee
Akismet stats URL and change to https
Pathduck Mar 22, 2021
ebabf8f
Change to controllers/albums.php for sorting albums first
Pathduck Mar 25, 2021
a35de50
Revert "Change to controllers/albums.php for sorting albums first"
Pathduck Mar 28, 2021
d2f842c
bring back the old phpmailer with some minor updates
bwdutton Apr 1, 2021
bf83ee2
Merge pull request #10 from Pathduck/akismet-https-fix
bwdutton Apr 1, 2021
86d59b2
fix tests
bwdutton Apr 2, 2021
33d109b
make some PHP CS recommended changes
bwdutton Apr 2, 2021
32d30b8
more linting for PHP 7 checks
bwdutton Apr 10, 2021
8700604
gh actions for CI
bwdutton Apr 23, 2021
6b9235f
skip vendor dir in checks
bwdutton Apr 23, 2021
44cf757
drop PHP 5.6 support, use mariadb for tests
bwdutton Apr 23, 2021
7a986b6
remove php 7.4 from composer file
bwdutton Apr 23, 2021
7a9e73e
no more travis ci
bwdutton Apr 23, 2021
b3c5e88
update create_function calls, I'm not sure these are even used
bwdutton Apr 23, 2021
d2075bb
tests should pass on all versions now
bwdutton Apr 23, 2021
96e7f17
changes to get tests passing with PHP 8
bwdutton Apr 23, 2021
3d74784
remove travis status
bwdutton Apr 23, 2021
a0e63fa
Update install.html.php
Sep 26, 2021
53a9a70
fix .htaccess check
bwdutton Oct 25, 2021
325af80
enable prod mode again
bwdutton Oct 25, 2021
2bf7ed8
update composer deps
bwdutton Oct 25, 2021
d8e52de
tweaks to run movie maintenance in the container
bwdutton Oct 25, 2021
a61c895
update gh tests
bwdutton Oct 25, 2021
954f468
ignore vendor files in tab test
bwdutton Oct 25, 2021
3d49a85
cache phpcs directory
bwdutton Oct 25, 2021
27f7ceb
remove flowplayer.js reference
bwdutton Oct 27, 2021
f34bfe6
CI make cache dir if needed
bwdutton Oct 27, 2021
39f976c
Merge pull request #13 from w84us/patch-1
bwdutton Nov 16, 2021
4b70c51
update tests for php 8.1
bwdutton Jan 9, 2022
2ab6eae
fix tests
bwdutton Jan 9, 2022
6cca477
fix xss file
bwdutton Jan 9, 2022
5ac3038
comment out translation updating that no longer works
bwdutton Jan 9, 2022
3ee5935
php 8.1 updates
bwdutton Jan 9, 2022
5e90d6b
Update README.md
bwdutton Jan 26, 2022
289fe01
exif module breaking on /100 for some nikon cameras
bwdutton Mar 16, 2022
eb490ad
this PHP 8.1 fix is wrong
bwdutton Mar 16, 2022
e20bd74
we need to start mysql now?!
bwdutton Mar 26, 2022
7b71247
add webp image support
bwdutton May 13, 2022
c2a7052
more php 8.1 updates
bwdutton May 14, 2022
580ea46
use mysql native db. skip the update & upgrade step
bwdutton May 14, 2022
c90c211
update composer
bwdutton Jun 4, 2022
67d40a5
update tests for new webp file types
bwdutton Jun 4, 2022
01f4ed7
remove mixed type from current(), add #[\ReturnTypeWillChange]
bwdutton Jun 4, 2022
6605533
if no email don't md5() it
bwdutton Jun 4, 2022
61ab7a3
fix tab
bwdutton Jun 4, 2022
8733819
update PHP version note
bwdutton Jun 4, 2022
fab36cf
update file/directory name limits 255 -> 768. Any bigger and the mysq…
bwdutton Aug 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: test suite

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ['7.4', '8.0', '8.1']
env:
DB_DATABASE: gallery3
DB_USER: root
DB_PASSWORD: root
DB_PORT: 3306
DB_HOST: 127.0.0.1
steps:
- name: Install OS packages
run: sudo apt-get install imagemagick graphicsmagick dcraw ffmpeg git

- name: Checkout
uses: actions/checkout@v2

- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }}_test;' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, gd, mysql, xml
ini-values: post_max_size=256M, max_execution_time=180
tools: composer:v2

- name: Get composer cache directory
id: composer-cache
run: |
mkdir -p .cache
echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
${{ steps.composer-cache.outputs.dir }}
~/.cache
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer install

# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3

- name: linter
run: bin/linter.sh

- name: phpcs
run: bin/phpcs.sh

- name: install db
run: php ./installer/index.php
env:
MYSQL_HOST: ${{ env.DB_HOST }}:${{ env.DB_PORT }}
MYSQL_USER: ${{ env.DB_USER }}
MYSQL_PASSWORD: ${{ env.DB_PASSWORD }}

- name: tests
run: php index.php test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# We store Gallery3 data in var
var
vendor

# local.php is a local customization point that gets loaded at the end of index.php
local.php

# http://codex.galleryproject.org/Gallery3:Using_Vagrant
Vagrantfile
.vagrant

*.swp
12 changes: 11 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@
# mirrored in php.ini
#
<IfModule mod_php5.c>
php_flag short_open_tag On
php_flag magic_quotes_gpc Off
php_flag magic_quotes_sybase Off
php_flag magic_quotes_runtime Off
php_flag register_globals Off
php_flag session.auto_start Off
php_flag suhosin.session.encrypt Off
php_value upload_max_filesize 20M
php_value post_max_size 100M
</IfModule>

<IfModule mod_php7.c>
php_flag magic_quotes_gpc Off
php_flag magic_quotes_sybase Off
php_flag magic_quotes_runtime Off
Expand Down
80 changes: 80 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0"?>
<ruleset name="KPQuote Standards">
<config name="installed_paths" value="vendor/phpcompatibility/php-compatibility" />
<config name="testVersion" value="8.1" />

<exclude-pattern>*\.(inc|css|js)$</exclude-pattern>

<file>./application</file>
<file>./lib</file>
<file>./system</file>
<file>./modules</file>
<file>./themes</file>
<file>./installer</file>

<arg name="colors"/>
<arg name="tab-width" value="4"/>
<arg name="report" value="full"/>
<arg name="parallel" value="2"/>

<ini name="memory_limit" value="512M"/>

<rule ref="PHPCompatibility" />

<rule ref="PHPCompatibility.Extensions.RemovedExtensions">
<exclude name="PHPCompatibility.Extensions.RemovedExtensions.mysql_DeprecatedRemoved"/>
</rule>

<rule ref="PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue">
<exclude name="PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.Changed"/>
</rule>

<rule ref="PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue">
<exclude name="PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection"/>
</rule>

<rule ref="PHPCompatibility.FunctionUse.RemovedFunctions">
<exclude name="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_get_iv_sizeDeprecatedRemoved"/>
<exclude name="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_create_ivDeprecatedRemoved"/>
<exclude name="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_encryptDeprecatedRemoved"/>
<exclude name="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_decryptDeprecatedRemoved"/>
<exclude name="PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_get_key_sizeDeprecatedRemoved"/>
<exclude name="PHPCompatibility.Constants.RemovedConstants.mcrypt_dev_urandomDeprecatedRemoved"/>
<exclude name="PHPCompatibility.Constants.RemovedConstants.mcrypt_dev_randomDeprecatedRemoved"/>
</rule>

<rule ref="PHPCompatibility.Constants.RemovedConstants">
<exclude name="PHPCompatibility.Constants.RemovedConstants.mcrypt_mode_nofbDeprecatedRemoved"/>
<exclude name="PHPCompatibility.Constants.RemovedConstants.mcrypt_rijndael_128DeprecatedRemoved"/>
<exclude name="PHPCompatibility.Constants.RemovedConstants.mcrypt_rijndael_256DeprecatedRemoved"/>
<exclude name="PHPCompatibility.Constants.RemovedConstants.mcrypt_randDeprecatedRemoved"/>
<exclude name="PHPCompatibility.Constants.RemovedConstants.mcrypt_mode_ecbDeprecatedRemoved"/>
</rule>

<rule ref="PHPCompatibility.Extensions.RemovedExtensions">
<exclude name="PHPCompatibility.Extensions.RemovedExtensions.mcryptDeprecatedRemoved"/>
</rule>

<!--
<rule ref="Squiz">
<exclude name="Squiz.Commenting"/>
<exclude name="Squiz.NamingConventions.ValidVariableName.NotCamelCaps"/>
<exclude name="Squiz.Operators.ComparisonOperatorUsage.ImplicitTrue"/>
<exclude name="Squiz.PHP.EmbeddedPhp.SpacingAfterOpen"/>
<exclude name="Zend.Files.ClosingTag.NotAllowed"/>
</rule>

<rule ref="Generic.PHP.DisallowShortOpenTag">
<exclude name="Generic.PHP.DisallowShortOpenTag.Found"/>
<exclude name="Generic.PHP.DisallowShortOpenTag.EchoFound"/>
</rule>

<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="indent" value="4"/>
<property name="tabIndent" value="true"/>
</properties>
</rule>

-->
</ruleset>
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

52 changes: 33 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Gallery 3.1+ (development version)
==================================

[![Build Status](https://travis-ci.org/gallery/gallery3.png?branch=master)](https://travis-ci.org/gallery/gallery3)

About
-----

Expand All @@ -21,24 +19,22 @@ welcome theme and module developers to play with this release and
start turning out slick new designs for our happy users. If you have
questions or problems, you can get help in the Gallery forums:

http://galleryproject.org/forum/96
https://groups.google.com/forum/#!forum/gallery-3-users

Security
--------

We've contracted a professional security audit, received their results
and resolved all the issues they found.

Did you find a security flaw? Please email [email protected]
with the details and we'll fix it ASAP!
Did you find a security flaw? Please submit an issue in github:
https://github.com/bwdutton/gallery3/issues

Supported Configuration
-----------------------

- Platform: Linux / Unix.
- Web server: Apache 2.2 and newer.
- PHP 5.2.3 and newer (PHP's safe_mode must be disabled and simplexml,
filter, and json must be installed).
- PHP 7.4 and newer (PHP's safe_mode must be disabled and simplexml,
filter, and json must be installed). All PHP 7.x versions should work but only 7.4 is tested
- short_open_tag isn't required but additional modules and themes may rely on it.
- Database: MySQL 5 and newer.

For complete system requirements, please refer to:
Expand All @@ -47,6 +43,18 @@ For complete system requirements, please refer to:

Installing and Upgrading Instructions
-------------------------------------
**NOTE:** When upgrading from PHP 5 to PHP 7 you will need to change the database type from mysql to mysqli in var/database.php:
```php
$config['default'] = array(
'benchmark' => false,
'persistent' => false,
'connection' => array(
'type' => 'mysqli',
```

For docker installations:

https://hub.docker.com/r/bwdutton/gallery3

For comprehensive instructions, The online User Guide is your best resource:

Expand Down Expand Up @@ -76,16 +84,22 @@ php installer/index.php [-h host] [-u user] [-p pass] [-d dbname]
-x Table prefix (default: )
```

Bugs?
-----
### Optional dependencies

Go to http://apps.sourceforge.net/trac/gallery/ click the "login" link
and log in with your SourceForge username and password, then click the
"new ticket" button.
Install composer dependencies to make all of the modules work (currently autorotate, phpmailer). In the top level gallery directory where the composer.json file exists run the following:

Questions, Problems
-------------------
```sh
composer install
```

Bugs, Questions, Problems?
--------------------------

- Check out the Gallery 3 FAQ: http://codex.galleryproject.org/Gallery3:FAQ
- Post to the Gallery 3 forums: http://galleryproject.org/forum/96
- Email [email protected]
- Try the support group: https://groups.google.com/forum/#!forum/gallery-3-users

### Forgot your password? Use the command line:

```sh
php index.php passwordreset <username>
```
15 changes: 13 additions & 2 deletions application/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
*
* Rawurlencode each of the elements to avoid breaking the page layout.
*/
$config["site_domain"] =
$config["site_domain"] = getEnv('SITE_DOMAIN') ? getEnv('SITE_DOMAIN') :
implode("/", array_map("rawurlencode", explode("/",
substr($_SERVER["SCRIPT_NAME"], 0,
strpos($_SERVER["SCRIPT_NAME"], basename($_SERVER["SCRIPT_FILENAME"]))))));
Expand All @@ -50,7 +50,7 @@
* specified, then the current protocol is used, or when possible, only an
* absolute path (with no protocol/domain) is used.
*/
$config["site_protocol"] = "";
$config["site_protocol"] = getEnv('SITE_PROTOCOL') ? getEnv('SITE_PROTOCOL') : "";

/**
* Name of the front controller for this application. Default: index.php
Expand All @@ -64,6 +64,13 @@
*/
$config["url_suffix"] = "";

/**
* For non Apache servers (.e.g nginx), we don't have .htaccess files to block access.
* All requests to the var directory are proxied through the /file_proxy/ for access checks.
* We still create the files in the event you want to change web servers.
*/
$config["no_htaccess"] = isset($_SERVER["SERVER_SOFTWARE"]) && preg_match('/nginx/', $_SERVER["SERVER_SOFTWARE"]) ? "1" : "";

/**
* Length of time of the internal cache in seconds. 0 or FALSE means no caching.
* The internal cache stores file paths and config entries across requests and
Expand Down Expand Up @@ -150,6 +157,10 @@
);

if (TEST_MODE) {
$config["site_domain"] = '.';
$config["site_protocol"] = 'http';
$config["index_page"] = 'index.php';

array_splice($config["modules"], 0, 0,
array(MODPATH . "gallery_unit_test",
MODPATH . "unit_test"));
Expand Down
Loading