X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgenerateSitemap.php;h=fb00bede071b850a4bfb9e713af72bec6ded1331;hb=2f28050b6b866f684da92c1832c0a3938b59ef0b;hp=f5cc6f6539d64a39fb47bb9719660206c61a6011;hpb=d716155c8b2d6e4a51a4110195cee7a1794846e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/generateSitemap.php b/maintenance/generateSitemap.php index f5cc6f6539..fb00bede07 100644 --- a/maintenance/generateSitemap.php +++ b/maintenance/generateSitemap.php @@ -113,7 +113,7 @@ class GenerateSitemap extends Maintenance { public $timestamp; /** - * A database slave object + * A database replica DB object * * @var object */ @@ -196,7 +196,7 @@ class GenerateSitemap extends Maintenance { $this->identifier = $this->getOption( 'identifier', wfWikiID() ); $this->compress = $this->getOption( 'compress', 'yes' ) !== 'no'; $this->skipRedirects = $this->getOption( 'skip-redirects', false ) !== false; - $this->dbr = $this->getDB( DB_SLAVE ); + $this->dbr = $this->getDB( DB_REPLICA ); $this->generateNamespaces(); $this->timestamp = wfTimestamp( TS_ISO_8601, wfTimestampNow() ); $this->findex = fopen( "{$this->fspath}sitemap-index-{$this->identifier}.xml", 'wb' ); @@ -523,7 +523,7 @@ class GenerateSitemap extends Maintenance { function fileEntry( $url, $date, $priority ) { return "\t\n" . - // bug 34666: $url may contain bad characters such as ampersands. + // T36666: $url may contain bad characters such as ampersands. "\t\t" . htmlspecialchars( $url ) . "\n" . "\t\t$date\n" . "\t\t$priority\n" . @@ -545,7 +545,7 @@ class GenerateSitemap extends Maintenance { * @param int $namespace */ function generateLimit( $namespace ) { - // bug 17961: make a title with the longest possible URL in this namespace + // T19961: make a title with the longest possible URL in this namespace $title = Title::makeTitle( $namespace, str_repeat( "\xf0\xa8\xae\x81", 63 ) . "\xe5\x96\x83" ); $this->limit = [