diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-02-02 16:20:02 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-02-02 16:20:02 +0100 |
commit | cbad102f88d285ae64e65bf10cddfdf2c615f138 (patch) | |
tree | 1a1ac71d3130c8ef756edd600ed5d24271bedf7e /phpBB/phpbb | |
parent | cacd43bfbd547d711bfdd4c424adfef9d20528e7 (diff) | |
download | forums-cbad102f88d285ae64e65bf10cddfdf2c615f138.tar forums-cbad102f88d285ae64e65bf10cddfdf2c615f138.tar.gz forums-cbad102f88d285ae64e65bf10cddfdf2c615f138.tar.bz2 forums-cbad102f88d285ae64e65bf10cddfdf2c615f138.tar.xz forums-cbad102f88d285ae64e65bf10cddfdf2c615f138.zip |
[ticket/11201] Split template file into multiple files
PHPBB3-11201
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/profilefields/type/type_base.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/phpBB/phpbb/profilefields/type/type_base.php b/phpBB/phpbb/profilefields/type/type_base.php index 248a89e5ac..95e9b8768b 100644 --- a/phpBB/phpbb/profilefields/type/type_base.php +++ b/phpBB/phpbb/profilefields/type/type_base.php @@ -63,6 +63,14 @@ abstract class type_base implements type_interface /** * {@inheritDoc} */ + public function get_template_filename() + { + return 'profilefields/' . $this->get_name_short() . '.html'; + } + + /** + * {@inheritDoc} + */ public function get_field_ident($field_data) { return 'pf_' . $field_data['field_ident']; @@ -153,7 +161,7 @@ abstract class type_base implements type_interface // set template filename $this->template->set_filenames(array( - 'cp_' . $this->get_name_short() . '_body' => 'custom_profile_fields.html', + 'cp_body' => $this->get_template_filename(), )); // empty previously filled blockvars @@ -162,6 +170,6 @@ abstract class type_base implements type_interface // Assign template variables $this->generate_field($profile_row, $preview_options); - return $this->template->assign_display('cp_' . $this->get_name_short() . '_body'); + return $this->template->assign_display('cp_body'); } } |