Changeset 6670 for trunk/src/includes/admin/converters/Vanilla.php
- Timestamp:
- 08/27/2017 11:24:00 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/admin/converters/Vanilla.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/converters/Vanilla.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 *****************************************************/ … … 521 526 522 527 /** 523 * Translate the topic status from Vanilla v2.x numeric 's to WordPress's strings.528 * Translate the topic status from Vanilla v2.x numerics to WordPress's strings. 524 529 * 525 530 * @param int $status Vanilla v2.x numeric topic status … … 541 546 542 547 /** 543 * Translate the topic sticky status type from Vanilla v2.x numeric 's to WordPress's strings.548 * Translate the topic sticky status type from Vanilla v2.x numerics to WordPress's strings. 544 549 * 545 550 * @param int $status Vanilla v2.x numeric forum type … … 601 606 return false; 602 607 } 603 604 /**605 * This callback processes any custom BBCodes with parser.php606 */607 protected function callback_html( $field ) {608 require_once bbpress()->admin->admin_dir . 'parser.php';609 $bbcode = BBCode::getInstance();610 $bbcode->enable_smileys = false;611 $bbcode->smiley_regex = false;612 return html_entity_decode( $bbcode->Parse( $field ) );613 }614 608 }
Note: See TracChangeset
for help on using the changeset viewer.