diff options
| author | GanstaZ <ganstaz@hotmail.com> | 2018-12-22 22:26:54 +0200 | 
|---|---|---|
| committer | GanstaZ <ganstaz@hotmail.com> | 2018-12-22 22:26:54 +0200 | 
| commit | c6f613bae55be0f2aab855d58ca7fbcaa643c626 (patch) | |
| tree | ed1488880d384efc3ddd3192a24239afcd8d9ab6 /phpBB/phpbb | |
| parent | 349ab42fdc994c5fa16436bd2d82df0ef4019f16 (diff) | |
| parent | 70a56c208fa5bcdde9337c871b30aaaf7e5602b8 (diff) | |
| download | forums-c6f613bae55be0f2aab855d58ca7fbcaa643c626.tar forums-c6f613bae55be0f2aab855d58ca7fbcaa643c626.tar.gz forums-c6f613bae55be0f2aab855d58ca7fbcaa643c626.tar.bz2 forums-c6f613bae55be0f2aab855d58ca7fbcaa643c626.tar.xz forums-c6f613bae55be0f2aab855d58ca7fbcaa643c626.zip | |
Merge branch '3.2.x' into ticket/15914
Diffstat (limited to 'phpBB/phpbb')
| -rw-r--r-- | phpBB/phpbb/db/migration/data/v30x/release_3_0_8_rc1.php | 9 | ||||
| -rw-r--r-- | phpBB/phpbb/db/migration/data/v32x/jquery_update.php | 37 | ||||
| -rw-r--r-- | phpBB/phpbb/db/migration/data/v32x/v325.php | 38 | ||||
| -rw-r--r-- | phpBB/phpbb/notification/method/email.php | 2 | 
4 files changed, 83 insertions, 3 deletions
| diff --git a/phpBB/phpbb/db/migration/data/v30x/release_3_0_8_rc1.php b/phpBB/phpbb/db/migration/data/v30x/release_3_0_8_rc1.php index c018adab46..836cb4577a 100644 --- a/phpBB/phpbb/db/migration/data/v30x/release_3_0_8_rc1.php +++ b/phpBB/phpbb/db/migration/data/v30x/release_3_0_8_rc1.php @@ -58,9 +58,14 @@ class release_3_0_8_rc1 extends \phpbb\db\migration\migration  		$result = $this->db->sql_query($sql);  		$extension_groups_updated = array(); -		while ($lang_dir = $this->db->sql_fetchfield('lang_dir')) +		while ($row = $this->db->sql_fetchrow($result))  		{ -			$lang_dir = basename($lang_dir); +			if (empty($row['lang_dir'])) +			{ +				continue; +			} + +			$lang_dir = basename($row['lang_dir']);  			// The language strings we need are either in language/.../acp/attachments.php  			// in the update package if we're updating to 3.0.8-RC1 or later, diff --git a/phpBB/phpbb/db/migration/data/v32x/jquery_update.php b/phpBB/phpbb/db/migration/data/v32x/jquery_update.php new file mode 100644 index 0000000000..6dc58ec638 --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v32x/jquery_update.php @@ -0,0 +1,37 @@ +<?php +/** + * + * This file is part of the phpBB Forum Software package. + * + * @copyright (c) phpBB Limited <https://www.phpbb.com> + * @license GNU General Public License, version 2 (GPL-2.0) + * + * For full copyright and license information, please see + * the docs/CREDITS.txt file. + * + */ + +namespace phpbb\db\migration\data\v32x; + +class jquery_update extends \phpbb\db\migration\migration +{ +	public function effectively_installed() +	{ +		return $this->config['load_jquery_url'] === '//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'; +	} + +	static public function depends_on() +	{ +		return array( +			'\phpbb\db\migration\data\v32x\v325rc1', +		); +	} + +	public function update_data() +	{ +		return array( +			array('config.update', array('load_jquery_url', '//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js')), +		); +	} + +} diff --git a/phpBB/phpbb/db/migration/data/v32x/v325.php b/phpBB/phpbb/db/migration/data/v32x/v325.php new file mode 100644 index 0000000000..59de4916df --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v32x/v325.php @@ -0,0 +1,38 @@ +<?php +/** +* +* This file is part of the phpBB Forum Software package. +* +* @copyright (c) phpBB Limited <https://www.phpbb.com> +* @license GNU General Public License, version 2 (GPL-2.0) +* +* For full copyright and license information, please see +* the docs/CREDITS.txt file. +* +*/ + +namespace phpbb\db\migration\data\v32x; + +class v325 extends \phpbb\db\migration\migration +{ +	public function effectively_installed() +	{ +		return phpbb_version_compare($this->config['version'], '3.2.5', '>='); +	} + +	static public function depends_on() +	{ +		return array( +			'\phpbb\db\migration\data\v32x\v325rc1', +			'\phpbb\db\migration\data\v32x\jquery_update', +		); + +	} + +	public function update_data() +	{ +		return array( +			array('config.update', array('version', '3.2.5')), +		); +	} +} diff --git a/phpBB/phpbb/notification/method/email.php b/phpBB/phpbb/notification/method/email.php index 56dd1e9367..6376d13dc7 100644 --- a/phpBB/phpbb/notification/method/email.php +++ b/phpBB/phpbb/notification/method/email.php @@ -65,7 +65,7 @@ class email extends \phpbb\notification\method\messenger_base  	*/  	public function is_available(type_interface $notification_type = null)  	{ -		return parent::is_available($notification_type) && $this->config['email_enable'] && $this->user->data['user_email']; +		return parent::is_available($notification_type) && $this->config['email_enable'] && !empty($this->user->data['user_email']);  	}  	/** | 
