Index: trunk/extensions/OAI/OAIRepo_body.php |
— | — | @@ -565,11 +565,6 @@ |
566 | 566 | return new OAIDumpWriter; |
567 | 567 | } |
568 | 568 | |
569 | | - function newSchema() { |
570 | | - global $wgVersion; |
571 | | - return version_compare( $wgVersion, '1.5alpha', 'ge' ); |
572 | | - } |
573 | | - |
574 | 569 | function fetchRecord( $pageid ) { |
575 | 570 | $db = $this->_db; |
576 | 571 | |
— | — | @@ -874,11 +869,8 @@ |
875 | 870 | array( 'img_name' => $this->_row->page_title ), |
876 | 871 | $fname ); |
877 | 872 | if( $imageRow ) { |
878 | | - if( OAIRepo::newSchema() ) { |
879 | | - $url = Image::imageUrl( $imageRow->img_name ); |
880 | | - } else { |
881 | | - $url = Image::wfImageUrl( $imageRow->img_name ); |
882 | | - } |
| 873 | + $url = Image::imageUrl( $imageRow->img_name ); |
| 874 | + |
883 | 875 | if( $url{0} == '/' ) { |
884 | 876 | global $wgServer; |
885 | 877 | $url = $wgServer . $url; |