Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | } |
108 | 108 | |
109 | 109 | class ExtMobileFrontend { |
110 | | - const VERSION = '0.5.98'; |
| 110 | + const VERSION = '0.5.99'; |
111 | 111 | |
112 | 112 | /** |
113 | 113 | * @var DOMDocument |
— | — | @@ -787,17 +787,6 @@ |
788 | 788 | wfProfileIn( __METHOD__ ); |
789 | 789 | if ( $this->contentFormat == 'XHTML' ) { |
790 | 790 | $this->getMsg(); |
791 | | - $editToken = $wgUser->editToken(); |
792 | | - |
793 | | - $htmlTitle = self::$messages['mobile-frontend-leave-feedback']; |
794 | | - $title = self::$messages['mobile-frontend-leave-feedback-title']; |
795 | | - $notice = self::$messages['mobile-frontend-leave-feedback-notice']; |
796 | | - $subject = self::$messages['mobile-frontend-leave-feedback-subject']; |
797 | | - $message = self::$messages['mobile-frontend-leave-feedback-message']; |
798 | | - $cancel = self::$messages['mobile-frontend-leave-feedback-cancel']; |
799 | | - $submit = self::$messages['mobile-frontend-leave-feedback-submit']; |
800 | | - |
801 | | - $feedbackPostURL = str_replace( '&mobileaction=leave_feedback', '', $wgRequest->getFullRequestURL() ) . '&mobileaction=leave_feedback_post'; |
802 | 791 | $searchTemplate = $this->getSearchTemplate(); |
803 | 792 | $searchWebkitHtml = $searchTemplate->getHTML(); |
804 | 793 | $footerTemplate = $this->getFooterTemplate(); |
— | — | @@ -805,13 +794,13 @@ |
806 | 795 | $leaveFeedbackTemplate = new LeaveFeedbackTemplate(); |
807 | 796 | $options = array( |
808 | 797 | 'feedbackPostURL' => str_replace( '&mobileaction=leave_feedback', '', $wgRequest->getFullRequestURL() ) . '&mobileaction=leave_feedback_post', |
809 | | - 'editToken' => $editToken, |
810 | | - 'title' => $title, |
811 | | - 'notice' => $notice, |
812 | | - 'subject' => $subject, |
813 | | - 'message' => $message, |
814 | | - 'cancel' => $cancel, |
815 | | - 'submit' => $submit, |
| 798 | + 'editToken' => $wgUser->editToken(), |
| 799 | + 'title' => self::$messages['mobile-frontend-leave-feedback-title'], |
| 800 | + 'notice' => self::$messages['mobile-frontend-leave-feedback-notice'], |
| 801 | + 'subject' => self::$messages['mobile-frontend-leave-feedback-subject'], |
| 802 | + 'message' => self::$messages['mobile-frontend-leave-feedback-message'], |
| 803 | + 'cancel' => self::$messages['mobile-frontend-leave-feedback-cancel'], |
| 804 | + 'submit' => self::$messages['mobile-frontend-leave-feedback-submit'], |
816 | 805 | ); |
817 | 806 | $leaveFeedbackTemplate->setByArray( $options ); |
818 | 807 | $leaveFeedbackHtml = $leaveFeedbackTemplate->getHTML(); |
— | — | @@ -820,7 +809,7 @@ |
821 | 810 | $applicationTemplate = $this->getApplicationTemplate(); |
822 | 811 | $options = array( |
823 | 812 | 'noticeHtml' => $noticeHtml, |
824 | | - 'htmlTitle' => $htmlTitle, |
| 813 | + 'htmlTitle' => self::$messages['mobile-frontend-leave-feedback'];, |
825 | 814 | 'searchWebkitHtml' => $searchWebkitHtml, |
826 | 815 | 'contentHtml' => $contentHtml, |
827 | 816 | 'footerHtml' => $footerHtml, |