Index: trunk/extensions/GoogleDocs4MW/GoogleDocs4MW.php |
— | — | @@ -5,9 +5,9 @@ |
6 | 6 | * |
7 | 7 | * @file |
8 | 8 | * @ingroup Extensions |
9 | | - * @version 1.0 |
| 9 | + * @version 1.1 |
10 | 10 | * @author Jack Phoenix <jack@shoutwiki.com> |
11 | | - * @copyright © 2008-2010 Jack Phoenix |
| 11 | + * @copyright © 2008-2011 Jack Phoenix |
12 | 12 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
13 | 13 | */ |
14 | 14 | |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | // Add extension credits that show up on Special:Version |
20 | 20 | $wgExtensionCredits['parserhook'][] = array( |
21 | 21 | 'name' => 'GoogleDocs4MW', |
22 | | - 'version' => '1.0', |
| 22 | + 'version' => '1.1', |
23 | 23 | 'author' => 'Jack Phoenix', |
24 | 24 | 'description' => 'Adds <tt><googlespreadsheet></tt> tag for Google Docs\' spreadsheets display', |
25 | 25 | 'url' => 'http://www.mediawiki.org/wiki/Extension:GoogleDocs4MW' |
— | — | @@ -39,8 +39,8 @@ |
40 | 40 | $key = htmlspecialchars( $input ); |
41 | 41 | |
42 | 42 | $output = '<iframe class="googlespreadsheetframe" width="' . |
43 | | - htmlspecialchars( $width ) . '" height="' . |
44 | | - htmlspecialchars( $height ) . '" style="' . |
| 43 | + intval( $width ) . '" height="' . |
| 44 | + intval( $height ) . '" style="' . |
45 | 45 | htmlspecialchars( $style ) . |
46 | 46 | '" src="http://spreadsheets.google.com/pub?key=' . $key . |
47 | 47 | '&output=html&widget=true"></iframe>'; |