Index: trunk/extensions/SemanticResultFormats/SRF_Settings.php |
— | — | @@ -51,7 +51,10 @@ |
52 | 52 | } |
53 | 53 | |
54 | 54 | # load hash format only if HashTables extension is initialised, otherwise 'Array' format is enough |
55 | | -if( isset( $wgHashTables ) ) { |
| 55 | +if( defined( 'ExtHashTables::VERSION' ) |
| 56 | + && version_compare( ExtHashTables::VERSION, '0.999', '>=' ) |
| 57 | + || isset( $wgHashTables ) // Version < 1.0 alpha |
| 58 | +) { |
56 | 59 | $srfgFormats[] = 'hash'; |
57 | 60 | } |
58 | 61 | |
Index: trunk/extensions/SemanticResultFormats/Array/SRF_Array.php |
— | — | @@ -423,9 +423,6 @@ |
424 | 424 | return parent::deliverQueryResultPages( $hash ); |
425 | 425 | } |
426 | 426 | |
427 | | - /** |
428 | | - * @ToDo: adjust for HashTables 0.8 |
429 | | - */ |
430 | 427 | protected function createArray( $hash ) { |
431 | 428 | global $wgHashTables; |
432 | 429 | |
— | — | @@ -440,7 +437,7 @@ |
441 | 438 | ExtHashTables::get( $wgParser )->createHash( $hashId, $hash ); |
442 | 439 | } |
443 | 440 | elseif( ! isset( $wgHashTables ) ) { |
444 | | - //Hash extension is not installed in this wiki |
| 441 | + // Hash extension is not installed in this wiki |
445 | 442 | return false; |
446 | 443 | } |
447 | 444 | elseif( $version !== null && version_compare( $version, '0.6', '>=' ) ) { |