Changeset 6670 for trunk/src/includes/admin/converters/XenForo.php
- Timestamp:
- 08/27/2017 11:24:00 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/admin/converters/XenForo.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/converters/XenForo.php
r6573 r6670 21 21 * 22 22 */ 23 function __construct() {23 public function __construct() { 24 24 parent::__construct(); 25 $this->setup_globals();26 25 } 27 26 … … 30 29 */ 31 30 public function setup_globals() { 31 32 // Setup smiley URL & path 33 $this->bbcode_parser_properties = array( 34 'smiley_url' => false, 35 'smiley_dir' => false 36 ); 32 37 33 38 /** Forum Section *****************************************************/ … … 722 727 723 728 /** 724 * Translate the forum status from XenForo numeric 's to WordPress's strings.729 * Translate the forum status from XenForo numerics to WordPress's strings. 725 730 * 726 731 * @param int $status XenForo numeric forum status … … 762 767 763 768 /** 764 * Translate the topic status from XenForo numeric 's to WordPress's strings.769 * Translate the topic status from XenForo numerics to WordPress's strings. 765 770 * 766 771 * @param int $status XenForo numeric topic status … … 782 787 783 788 /** 784 * Translate the topic sticky status type from XenForo numeric 's to WordPress's strings.789 * Translate the topic sticky status type from XenForo numerics to WordPress's strings. 785 790 * 786 791 * @param int $status XenForo numeric forum type … … 841 846 842 847 // Parse out any bbCodes in $field with the BBCode 'parser.php' 843 require_once bbpress()->admin->admin_dir . 'parser.php'; 844 $bbcode = BBCode::getInstance(); 845 $bbcode->enable_smileys = false; 846 $bbcode->smiley_regex = false; 847 return html_entity_decode( $bbcode->Parse( $field ) ); 848 return parent::callback_html( $field ); 848 849 } 849 850 }
Note: See TracChangeset
for help on using the changeset viewer.