diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-04-13 23:46:28 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-05-29 02:14:33 +0200 |
commit | ef8d7b995e854c64a5f529978ee4898030ae9fa4 (patch) | |
tree | 98f2fc2719f88154f5dfa0820fd8680d93bd3ba8 /phpBB/phpbb/message/admin_form.php | |
parent | 35b88624f5f85e3d7ea048e9f537dc477bf913c6 (diff) | |
download | forums-ef8d7b995e854c64a5f529978ee4898030ae9fa4.tar forums-ef8d7b995e854c64a5f529978ee4898030ae9fa4.tar.gz forums-ef8d7b995e854c64a5f529978ee4898030ae9fa4.tar.bz2 forums-ef8d7b995e854c64a5f529978ee4898030ae9fa4.tar.xz forums-ef8d7b995e854c64a5f529978ee4898030ae9fa4.zip |
[ticket/10073] Add @config_text to admin_form
PHPBB3-10073
Diffstat (limited to 'phpBB/phpbb/message/admin_form.php')
-rw-r--r-- | phpBB/phpbb/message/admin_form.php | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/phpBB/phpbb/message/admin_form.php b/phpBB/phpbb/message/admin_form.php index 57564cff12..f7eddb59dc 100644 --- a/phpBB/phpbb/message/admin_form.php +++ b/phpBB/phpbb/message/admin_form.php @@ -17,6 +17,9 @@ namespace phpbb\message; */ class admin_form extends form { + /** @var \phpbb\config\db_text */ + protected $config_text; + /** @var string */ protected $subject; /** @var string */ @@ -25,6 +28,23 @@ class admin_form extends form protected $sender_address; /** + * Construct + * + * @param \phpbb\auth\auth $auth + * @param \phpbb\config\config $config + * @param \phpbb\config\db_text $config_text + * @param \phpbb\db\driver\driver_interface $db + * @param \phpbb\user $user + * @param string $phpbb_root_path + * @param string $phpEx + */ + public function __construct(\phpbb\auth\auth $auth, \phpbb\config\config $config, \phpbb\config\db_text $config_text, \phpbb\db\driver\driver_interface $db, \phpbb\user $user, $phpbb_root_path, $phpEx) + { + parent::__construct($auth, $config, $db, $user, $phpbb_root_path, $phpEx); + $this->config_text = $config_text; + } + + /** * {inheritDoc} */ public function check_allow() @@ -116,12 +136,15 @@ class admin_form extends form */ public function render(\phpbb\template\template $template) { + // @todo Add option to fill the db with it and add migration + $l_admin_info = '';//$this->config_text['contact_admin_info']; + $template->assign_vars(array( 'S_CONTACT_ADMIN' => true, 'S_CONTACT_FORM' => $this->config['contact_admin_form_enable'], 'S_IS_REGISTERED' => $this->user->data['is_registered'], - 'CONTACT_INFO' => '', /** TODO: $this->config['contact_admin_info'] */ + 'CONTACT_INFO' => $l_admin_info, 'MESSAGE' => $this->body, 'SUBJECT' => $this->subject, 'NAME' => $this->sender_name, |