Changeset 6670 for trunk/src/includes/admin/converters/Mingle.php
- Timestamp:
- 08/27/2017 11:24:00 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/converters/Mingle.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 ******************************************************/ … … 435 440 436 441 /** 437 * Translate the topic status from Mingle numeric 's to WordPress's strings.442 * Translate the topic status from Mingle numerics to WordPress's strings. 438 443 * 439 444 * @param int $status Mingle v1.x numeric topic status … … 455 460 456 461 /** 457 * Translate the topic sticky status type from Mingle numeric 's to WordPress's strings.462 * Translate the topic sticky status type from Mingle numerics to WordPress's strings. 458 463 * 459 464 * @param int $status Mingle numeric forum type … … 473 478 return $status; 474 479 } 475 476 /**477 * This callback processes any custom BBCodes with parser.php478 */479 protected function callback_html( $field ) {480 require_once bbpress()->admin->admin_dir . 'parser.php';481 $bbcode = BBCode::getInstance();482 $bbcode->enable_smileys = false;483 $bbcode->smiley_regex = false;484 return html_entity_decode( $bbcode->Parse( $field ) );485 }486 480 }
Note: See TracChangeset
for help on using the changeset viewer.