1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Merge pull request #5061 from marc1706/ticket/15322

[ticket/15322] Add config for envelope sender & remove mail function setting
This commit is contained in:
Derky
2017-12-27 19:30:27 +01:00
6 changed files with 47 additions and 16 deletions

View File

@@ -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 email_force_sender extends \phpbb\db\migration\migration
{
static public function depends_on()
{
return array(
'\phpbb\db\migration\data\v32x\v321',
);
}
public function effectively_installed()
{
return isset($this->config['email_force_sender']);
}
public function update_data()
{
return array(
array('config.add', array('email_force_sender', '0')),
array('config.remove', array('email_function_name')),
);
}
}