Index: trunk/extensions/UploadWizard/includes/specials/SpecialUploadCampaign.php |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | if ( is_array( $data['default'] ) ) { |
108 | 108 | switch ( $data['type'] ) { |
109 | 109 | case 'text': case 'textarea': |
110 | | - $data['default'] = implode( '| ', $data['default'] ); |
| 110 | + $data['default'] = implode( '|', $data['default'] ); |
111 | 111 | break; |
112 | 112 | } |
113 | 113 | } |
Index: trunk/extensions/UploadWizard/includes/UploadWizardCampaign.php |
— | — | @@ -301,7 +301,7 @@ |
302 | 302 | |
303 | 303 | foreach ( $config as $settingName => &$settingValue ) { |
304 | 304 | if ( is_array( $defaultConfig[$settingName]['default'] ) && !is_array( $settingValue ) ) { |
305 | | - $parts = explode( '| ', $settingValue ); |
| 305 | + $parts = explode( '|', $settingValue ); |
306 | 306 | $settingValue = array(); |
307 | 307 | |
308 | 308 | foreach ( $parts as $part ) { |
— | — | @@ -494,13 +494,15 @@ |
495 | 495 | |
496 | 496 | $dbw->begin(); |
497 | 497 | |
| 498 | + // TODO: it'd be better to serialize() arrays |
| 499 | + |
498 | 500 | foreach ( $this->config as $prop => $value ) { |
499 | 501 | $success &= $dbw->insert( |
500 | 502 | 'uw_campaign_conf', |
501 | 503 | array( |
502 | 504 | 'cc_campaign_id' => $this->id, |
503 | 505 | 'cc_property' => $prop, |
504 | | - 'cc_value' => is_array( $value ) ? implode( '| ', $value ) : $value |
| 506 | + 'cc_value' => is_array( $value ) ? implode( '|', $value ) : $value |
505 | 507 | ), |
506 | 508 | __METHOD__ |
507 | 509 | ); |