r74101 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74100‎ | r74101 | r74102 >
Date:20:24, 1 October 2010
Author:neilk
Status:deferred
Tags:
Comment:
added comments
Modified paths:
  • /branches/uploadwizard/extensions/UploadWizard/test/php/scripts/generateRandomImages.php (modified) (history)

Diff [purge]

Index: branches/uploadwizard/extensions/UploadWizard/test/php/scripts/generateRandomImages.php
@@ -1,10 +1,18 @@
22 <?php
33
4 -/* Because MediaWiki tests the uniqueness of media upload content, and filenames, it is sometimes useful to generate
5 - files that are guaranteed (or at least very likely) to be unique in both those ways.
6 - This generates a number of filenames with random names and random content (colored circles) */
 4+/*
 5+ * generateRandomImages -- does what it says on the tin.
 6+ *
 7+ * Because MediaWiki tests the uniqueness of media upload content, and filenames, it is sometimes useful to generate
 8+ * files that are guaranteed (or at least very likely) to be unique in both those ways.
 9+ * This generates a number of filenames with random names and random content (colored circles)
 10+ *
 11+ * Requires Imagick, the ImageMagick library for PHP.
 12+ *
 13+ * @file
 14+ * @author Neil Kandalgaonkar <neilk@wikimedia.org>
 15+ */
716
8 -
917 $defaults = array(
1018 'dict' => "/usr/share/dict/words",
1119 'number' => 10,

Status & tagging log