Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -620,6 +620,7 @@ |
621 | 621 | global $wgPDFTemplateBlacklist; |
622 | 622 | global $wgServer; |
623 | 623 | global $wgScriptPath; |
| 624 | + global $wgScriptExtension; |
624 | 625 | |
625 | 626 | if ( !$writer ) { |
626 | 627 | $writer = 'rl'; |
— | — | @@ -628,6 +629,7 @@ |
629 | 630 | $response = self::mwServeCommand( 'render', array( |
630 | 631 | 'metabook' => $this->buildJSONCollection( $collection ), |
631 | 632 | 'base_url' => $wgServer . $wgScriptPath, |
| 633 | + 'script_extension' => $wgScriptExtension, |
632 | 634 | 'template_blacklist' => $wgPDFTemplateBlacklist, |
633 | 635 | 'template_exclusion_category' => $wgCollectionTemplateExclusionCategory, |
634 | 636 | 'writer' => $writer, |
— | — | @@ -654,6 +656,7 @@ |
655 | 657 | global $wgRequest; |
656 | 658 | global $wgServer; |
657 | 659 | global $wgScriptPath; |
| 660 | + global $wgScriptExtension; |
658 | 661 | |
659 | 662 | $collectionID = $wgRequest->getVal( 'collection_id', '' ); |
660 | 663 | $writer = $wgRequest->getVal( 'writer', 'rl' ); |
— | — | @@ -661,6 +664,7 @@ |
662 | 665 | $response = self::mwServeCommand( 'render', array( |
663 | 666 | 'collection_id' => $collectionID, |
664 | 667 | 'base_url' => $wgServer . $wgScriptPath, |
| 668 | + 'script_extension' => $wgScriptExtension, |
665 | 669 | 'template_blacklist' => $wgPDFTemplateBlacklist, |
666 | 670 | 'template_exclusion_category' => $wgCollectionTemplateExclusionCategory, |
667 | 671 | 'writer' => $writer, |
— | — | @@ -800,6 +804,7 @@ |
801 | 805 | function postZIP( $partner ) { |
802 | 806 | global $wgServer; |
803 | 807 | global $wgScriptPath; |
| 808 | + global $wgScriptExtension; |
804 | 809 | global $wgOut; |
805 | 810 | global $wgPDFTemplateBlacklist; |
806 | 811 | global $wgCollectionTemplateExclusionCategory; |
— | — | @@ -814,6 +819,7 @@ |
815 | 820 | $response = self::mwServeCommand( 'zip_post', array( |
816 | 821 | 'metabook' => $this->buildJSONCollection( $_SESSION['wsCollection'] ), |
817 | 822 | 'base_url' => $wgServer . $wgScriptPath, |
| 823 | + 'script_extension' => $wgScriptExtension, |
818 | 824 | 'template_blacklist' => $wgPDFTemplateBlacklist, |
819 | 825 | 'template_exclusion_category' => $wgCollectionTemplateExclusionCategory, |
820 | 826 | 'pod_api_url' => $this->mPODPartners[$partner]['posturl'], |