r80631 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80630‎ | r80631 | r80632 >
Date:16:40, 20 January 2011
Author:husky
Status:ok
Tags:
Comment:
removed camelcasing again
Modified paths:
  • /trunk/tools/wp-photocommons/inc/class-photocommons.php (modified) (history)
  • /trunk/tools/wp-photocommons/index.php (modified) (history)
  • /trunk/tools/wp-photocommons/js/admin.js (modified) (history)

Diff [purge]

Index: trunk/tools/wp-photocommons/inc/class-photocommons.php
@@ -1,5 +1,5 @@
22 <?php
3 -class PhotoCommons {
 3+class Photocommons {
44 // TODO: ugly
55 const PLUGIN_PATH = "/wp-content/plugins/wp-photocommons/";
66 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 @@
3030 }
3131
3232 private function doApiThumbResizeRequest($filename, $size) {
33 - ini_set('user_agent', 'PhotoCommons/1.0');
 33+ ini_set('user_agent', 'Photocommons/1.0');
3434 $url = $this->getResizeUrl($filename, $size);
3535 $result = unserialize(file_get_contents($url));
3636 $data = array_pop($result['query']['pages']);
Index: trunk/tools/wp-photocommons/js/admin.js
@@ -18,7 +18,7 @@
1919 var $self = $("#photocommons-dialog");
2020
2121 $self.dialog({
22 - title : 'PhotoCommons - Afbeelingen invoegen van Wikimedia Commons',
 22+ title : 'Photocommons - Afbeelingen invoegen van Wikimedia Commons',
2323 width : 800,
2424 height : 500
2525 });
Index: trunk/tools/wp-photocommons/index.php
@@ -1,12 +1,12 @@
22 <?php
33 /*
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
66 Description: Search and add free images from Wikimedia Commons directly in your blog
77 Author: Hay Kranen, Timo Tijhof
88 Version: 1.0
9 -Author URI: http://www.mediawiki.org/wiki/PhotoCommons
 9+Author URI: http://www.mediawiki.org/wiki/Photocommons
1010 */
1111
1212 require 'inc/class-photocommons.php';
13 -new PhotoCommons();
\ No newline at end of file
 13+new Photocommons();
\ No newline at end of file

Status & tagging log