Index: trunk/extensions/AmazonPlus/AmazonPlus.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | 'name' => 'AmazonPlus', |
49 | 49 | 'description' => 'A highly customizable extension to display Amazon information', |
50 | 50 | 'descriptionmsg' => 'amazonplus-desc', |
51 | | - 'version' => '0.3', |
| 51 | + 'version' => '0.3.1', |
52 | 52 | 'url' => 'http://www.mediawiki.org/wiki/Extension:AmazonPlus', |
53 | 53 | 'author' => 'Ryan Schmidt', |
54 | 54 | ); |
— | — | @@ -62,6 +62,7 @@ |
63 | 63 | |
64 | 64 | $wgHooks['BeforePageDisplay'][] = 'efAmazonPlusJavascript'; |
65 | 65 | |
| 66 | +$wgAmazonPlusJSVersion = 1; # Bump the version number every time you change AmazonPlus.js |
66 | 67 | $wgAmazonPlusAWS = ''; # Amazon AWS Id. Required |
67 | 68 | $wgAmazonPlusAssociates = array(); # Amazon Associates IDs, per locale.Example: array( 'us' => 'myamazonid', 'fr' => 'myfrenchid' ); Required |
68 | 69 | $wgAmazonPlusDefaultSearch = 'Books'; # Default search type, can be Books, DVDs, etc. |
— | — | @@ -84,7 +85,7 @@ |
85 | 86 | # Set up the javascript |
86 | 87 | function efAmazonPlusJavascript( &$out, $sk ) { |
87 | 88 | global $wgScriptPath; |
88 | | - $src = $wgScriptPath . '/extensions/AmazonPlus/AmazonPlus.js'; |
| 89 | + $src = $wgScriptPath . "/extensions/AmazonPlus/AmazonPlus.js?$wgAmazonPlusJSVersion"; |
89 | 90 | $out->addScript( '<script type="text/javascript" src="' . $src . '"></script>' . "\n" ); |
90 | 91 | return true; |
91 | 92 | } |