Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore.php |
— | — | @@ -694,15 +694,6 @@ |
695 | 695 | |
696 | 696 | extract( $db->tableNames('smw_relations','smw_attributes','smw_longstrings','smw_specialprops') ); |
697 | 697 | |
698 | | -/// DEBUG |
699 | | -// $this->setupTable('smw_test2', |
700 | | -// array('subject_id' => 'INT(8) UNSIGNED NOT NULL', |
701 | | -// 'subject_namespace' => 'INT(11) NOT NULL', |
702 | | -// 'subject_title' => 'VARCHAR(245) NOT NULL', |
703 | | -// //'nullvalue' => 'VARCHAR(255)', |
704 | | -// 'value_unit2' => 'VARCHAR(64)', |
705 | | -// 'value_unit' => 'VARCHAR(61) NOT NULL'), $db, $verbose); |
706 | | - |
707 | 698 | // create relation table |
708 | 699 | $this->setupTable($smw_relations, |
709 | 700 | array('subject_id' => 'INT(8) UNSIGNED NOT NULL', |
— | — | @@ -1281,6 +1272,9 @@ |
1282 | 1273 | if (!$verbose) { |
1283 | 1274 | return; |
1284 | 1275 | } |
| 1276 | + if (ob_get_level() == 0) { // be sure to have some buffer, otherwise some PHPs complain |
| 1277 | + ob_start(); |
| 1278 | + } |
1285 | 1279 | print $msg; |
1286 | 1280 | ob_flush(); |
1287 | 1281 | flush(); |