Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -750,28 +750,17 @@ |
751 | 751 | return; |
752 | 752 | } |
753 | 753 | |
754 | | - $url = $this->mPODPartners[$partner]['posturl']; |
755 | | - $errorMessage = ''; |
756 | | - $contentType = ''; |
757 | | - $response = self::post( $url, array(), $errorMessage, $contentType ); |
758 | | - if ( !$response ) { |
759 | | - $wgOut->showErrorPage( 'coll-post_failed_title', 'coll-post_failed_msg', array( $url, $errorMessage ) ); |
760 | | - return; |
761 | | - } |
762 | | - $postData = $json->decode( $response ); |
763 | | - |
764 | 754 | $response = self::pdfServerCommand( 'zip_post', array( |
765 | 755 | 'metabook' => $this->buildJSONCollection( $_SESSION['wsCollection'] ), |
766 | 756 | 'base_url' => $wgServer . $wgScriptPath, |
767 | 757 | 'template_blacklist' => $wgPDFTemplateBlacklist, |
768 | 758 | 'template_exclusion_category' => $wgCollectionTemplateExclusionCategory, |
769 | | - 'post_url' => $postData->post_url, |
| 759 | + 'pod_api_url' => $this->mPODPartners[$partner]['posturl'], |
770 | 760 | ) ); |
771 | 761 | if ( !$response ) { |
772 | 762 | return; |
773 | | - } |
774 | | - |
775 | | - $wgOut->redirect( $postData->redirect_url ); |
| 763 | + } |
| 764 | + $wgOut->redirect( $response->redirect_url ); |
776 | 765 | } |
777 | 766 | |
778 | 767 | private function outputIntro() { |