Index: trunk/extensions/DonationInterface/donate_interface/donate_interface.php |
— | — | @@ -37,8 +37,6 @@ |
38 | 38 | //load extension messages |
39 | 39 | wfLoadExtensionMessages( 'DonateInterface' ); |
40 | 40 | |
41 | | - $parser->disableCache(); |
42 | | - |
43 | 41 | $parser->setHook( 'donate', 'efDonateRender' ); |
44 | 42 | |
45 | 43 | //process form |
— | — | @@ -55,8 +53,8 @@ |
56 | 54 | * Outputs the donation landing page form which collects |
57 | 55 | * the donation amount, currency and payment processor type. |
58 | 56 | */ |
59 | | -function efDonateRender( $input, $args, &$parser ) { |
60 | | - global $wgOut, $wgScriptPath; |
| 57 | +function efDonateRender( $input, $args, $parser ) { |
| 58 | + global $wgOut, $wgExtensionAssetsPath; |
61 | 59 | |
62 | 60 | $parser->disableCache(); |
63 | 61 | |
— | — | @@ -65,7 +63,7 @@ |
66 | 64 | //$chapter = fnDonateChapterRedirect(); |
67 | 65 | |
68 | 66 | // add JavaScript validation to <head> |
69 | | - $wgOut->addScriptFile( $wgScriptPath . '/extensions/DonationInterface/donate_interface/donate_interface_validate_donation.js' ); |
| 67 | + $wgOut->addScriptFile( $wgExtensionAssetsPath . '/DonationInterface/donate_interface/donate_interface_validate_donation.js' ); |
70 | 68 | |
71 | 69 | //display form to gather data from user |
72 | 70 | $output = fnDonateCreateOutput(); |