Index: trunk/phase3/includes/DoubleRedirectJob.php |
— | — | @@ -1,13 +1,19 @@ |
2 | 2 | <?php |
3 | 3 | |
| 4 | +/** |
| 5 | + * Job to fix double redirects after moving a page |
| 6 | + * |
| 7 | + * @ingroup JobQueue |
| 8 | + */ |
4 | 9 | class DoubleRedirectJob extends Job { |
5 | 10 | var $reason, $redirTitle, $destTitleText; |
6 | 11 | static $user; |
7 | 12 | |
8 | 13 | /** |
9 | 14 | * Insert jobs into the job queue to fix redirects to the given title |
10 | | - * @param string $type The reason for the fix, see message double-redirect-fixed-<reason> |
11 | | - * @param Title $redirTitle The title which has changed, redirects pointing to this title are fixed |
| 15 | + * @param $reason String: the reason for the fix, see message double-redirect-fixed-<reason> |
| 16 | + * @param $redirTitle Title: the title which has changed, redirects pointing to this title are fixed |
| 17 | + * @param $destTitle Not used |
12 | 18 | */ |
13 | 19 | public static function fixRedirects( $reason, $redirTitle, $destTitle = false ) { |
14 | 20 | # Need to use the master to get the redirect table updated in the same transaction |
— | — | @@ -116,7 +122,7 @@ |
117 | 123 | |
118 | 124 | /** |
119 | 125 | * Get the final destination of a redirect |
120 | | - * Returns false if the specified title is not a redirect, or if it is a circular redirect |
| 126 | + * @return false if the specified title is not a redirect, or if it is a circular redirect |
121 | 127 | */ |
122 | 128 | public static function getFinalDestination( $title ) { |
123 | 129 | $dbw = wfGetDB( DB_MASTER ); |
Index: trunk/phase3/includes/HTMLCacheUpdate.php |
— | — | @@ -214,9 +214,9 @@ |
215 | 215 | |
216 | 216 | /** |
217 | 217 | * Construct a job |
218 | | - * @param Title $title The title linked to |
219 | | - * @param array $params Job parameters (table, start and end page_ids) |
220 | | - * @param integer $id job_id |
| 218 | + * @param $title Title: the title linked to |
| 219 | + * @param $params Array: job parameters (table, start and end page_ids) |
| 220 | + * @param $job_id Integer |
221 | 221 | */ |
222 | 222 | function __construct( $title, $params, $id = 0 ) { |
223 | 223 | parent::__construct( 'htmlCacheUpdate', $title, $params, $id ); |