Enable custom event teams delimiter

This commit is contained in:
Brian Miyaji
2014-03-22 00:01:02 +11:00
parent a4ab59da27
commit f730f7886e
4 changed files with 40 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ if ( class_exists( 'WP_Importer' ) ) {
* @return void
*/
function import( $file ) {
global $wpdb;
global $wpdb, $sportspress_options;
$this->imported = $this->skipped = 0;
@@ -311,7 +311,7 @@ if ( class_exists( 'WP_Importer' ) ) {
// Add delimiter if event name is set
if ( $title ):
$title .= ' ' . __( 'vs', 'sportspress' ) . ' ';
$title .= ' ' . sportspress_array_value( $sportspress_options, 'event_teams_delimiter', 'vs' ) . ' ';
endif;
// Append team name to event name