Index: trunk/tools/wp-photocommons/inc/class-photocommons.php |
— | — | @@ -1,5 +1,5 @@ |
2 | 2 | <?php |
3 | | -class PhotoCommons { |
| 3 | +class Photocommons { |
4 | 4 | // TODO: ugly |
5 | 5 | const PLUGIN_PATH = "/wp-content/plugins/wp-photocommons/"; |
6 | 6 | const RESIZE_URL = "http://commons.wikimedia.org/w/api.php?action=query&titles=%s&prop=imageinfo&iiprop=url&iiurlwidth=%s&format=php"; |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | } |
31 | 31 | |
32 | 32 | private function doApiThumbResizeRequest($filename, $size) { |
33 | | - ini_set('user_agent', 'PhotoCommons/1.0'); |
| 33 | + ini_set('user_agent', 'Photocommons/1.0'); |
34 | 34 | $url = $this->getResizeUrl($filename, $size); |
35 | 35 | $result = unserialize(file_get_contents($url)); |
36 | 36 | $data = array_pop($result['query']['pages']); |
Index: trunk/tools/wp-photocommons/js/admin.js |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | var $self = $("#photocommons-dialog"); |
20 | 20 | |
21 | 21 | $self.dialog({ |
22 | | - title : 'PhotoCommons - Afbeelingen invoegen van Wikimedia Commons', |
| 22 | + title : 'Photocommons - Afbeelingen invoegen van Wikimedia Commons', |
23 | 23 | width : 800, |
24 | 24 | height : 500 |
25 | 25 | }); |
Index: trunk/tools/wp-photocommons/index.php |
— | — | @@ -1,12 +1,12 @@ |
2 | 2 | <?php |
3 | 3 | /* |
4 | | -Plugin Name: PhotoCommons |
5 | | -Plugin URI: http://www.mediawiki.org/wiki/PhotoCommons |
| 4 | +Plugin Name: Photocommons |
| 5 | +Plugin URI: http://www.mediawiki.org/wiki/Photocommons |
6 | 6 | Description: Search and add free images from Wikimedia Commons directly in your blog |
7 | 7 | Author: Hay Kranen, Timo Tijhof |
8 | 8 | Version: 1.0 |
9 | | -Author URI: http://www.mediawiki.org/wiki/PhotoCommons |
| 9 | +Author URI: http://www.mediawiki.org/wiki/Photocommons |
10 | 10 | */ |
11 | 11 | |
12 | 12 | require 'inc/class-photocommons.php'; |
13 | | -new PhotoCommons(); |
\ No newline at end of file |
| 13 | +new Photocommons(); |
\ No newline at end of file |