Skip to content

Commit eeee75a

Browse files
committed
Merge branch 'dev33'
2 parents c13b941 + 76fc6ca commit eeee75a

File tree

273 files changed

+14059
-11058
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+14059
-11058
lines changed

.dotgitlab-ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Configuration file for running the test suite. Results will be at https://travis-ci.org/phpList/phplist3
2+
# whitelist
3+
language: php
4+
php:
5+
- 7.0
6+
- 5.6
7+
- 5.5
8+
- 5.4
9+
- 5.3
10+
11+
before_script:
12+
- sudo apt-get update > /dev/null
13+
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl php5-mysql php5-intl
14+
# Set a custom vhost
15+
- sudo sed -i -e "s,/var/www,$(pwd)/public_html,g" /etc/apache2/sites-available/default
16+
- sudo sed -i -e "/DocumentRoot/i\ServerName phplist.dev" /etc/apache2/sites-available/default
17+
- echo "127.0.0.1 phplist.dev" | sudo tee -a /etc/hosts
18+
- sudo /etc/init.d/apache2 restart
19+
- sudo cp -f tests/travis-ci/behat.yml behat.yml
20+
- sudo cp -f tests/travis-ci/config.php public_html/lists/config/config.php
21+
- composer self-update
22+
- composer install --prefer-dist
23+
- cd vendor/bin && ln -s ../njoannidi/php-lint-bash/phpLint && cd ../../
24+
- ls -l vendor/bin
25+
26+
# Set MySQL configuration and create the database.
27+
- mysql -e 'SET GLOBAL wait_timeout = 5400;'
28+
- mysql -e 'create database phplistdb;'
29+
30+
script:
31+
- vendor/bin/phpLint ./public_html
32+
- vendor/bin/behat
33+
34+
after_failure:
35+
- echo "Failures detected. Outputing additional logs:"
36+
- sudo cat /var/log/apache2/error.log
37+
- sudo cat /var/log/mysql/error.log

.php_cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ $finder = Symfony\CS\Finder\DefaultFinder::create()
1616
->exclude('admin/ui')
1717
->exclude('admin/locale')
1818
->exclude('admin/PHPMailer')
19+
->exclude('admin/inc/random_compat')
1920
->in(__DIR__)
2021
;
2122

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# file that keeps track of the latest tag in cvs and the corresponding version
22
# this automates publishing a new version, when it's tagged
33
# if you don't understand this, don't worry. You don't need this file
4-
VERSION=3.2.7
4+
VERSION=3.3.0
55
TAG=xx
66
PREVTAG=xx
77
DEVVERSION=3.3.0

default.behat.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ default:
55
selenium2: ~
66
# Change to you custom url
77
base_url: http://localhost/phplist3/public_html/
8+
context :
9+
parameters :
10+
user: xyz
11+
password : abc

public_html/lists/admin/EmailSender.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22
/**
33
* A plugin should implement this interface if it wants to be responsible
44
* for sending emails.
5-
*
65
*/
76
interface EmailSender
87
{
98
/**
109
* Send an email.
1110
*
1211
* @param PHPlistMailer $phplistmailer mailer instance
13-
* @param string $header the message http headers
14-
* @param string $body the message body
12+
* @param string $header the message http headers
13+
* @param string $body the message body
1514
*
1615
* @return bool success/failure
1716
*/

public_html/lists/admin/PHPMailer/PHPMailerAutoload.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?php
22
/**
33
* PHPMailer SPL autoloader.
4-
* PHP Version 5
5-
* @package PHPMailer
4+
* PHP Version 5.
5+
*
66
* @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
7+
*
78
* @author Marcus Bointon (Synchro/coolbru) <[email protected]>
89
* @author Jim Jagielski (jimjag) <[email protected]>
910
* @author Andy Prevost (codeworxtech) <[email protected]>
@@ -19,6 +20,7 @@
1920

2021
/**
2122
* PHPMailer SPL autoloader.
23+
*
2224
* @param string $classname The name of the class to load
2325
*/
2426
function PHPMailerAutoload($classname)
@@ -39,7 +41,8 @@ function PHPMailerAutoload($classname)
3941
}
4042
} else {
4143
/**
42-
* Fall back to traditional autoload for old PHP versions
44+
* Fall back to traditional autoload for old PHP versions.
45+
*
4346
* @param string $classname The name of the class to load
4447
*/
4548
function __autoload($classname)

0 commit comments

Comments
 (0)