Page MenuHomePhabricator
Paste P5403

Masterwork From Distant Lands
ActivePublic

Authored by Mattflaschen-WMF on May 8 2017, 11:43 PM.
<?php
require_once __DIR__ . '/Maintenance.php';
class CheckTagsChar extends Maintenance {
public function execute() {
$CHAR = '/';
$allTags = ChangeTags::listDefinedTags();
foreach ( $allTags as $tag ) {
$pos = strpos( $tag, $CHAR );
if ( $pos !== false ) {
echo "'$tag' contains '$CHAR'\n";
exit(1);
}
}
$wikiId = wfWikiId();
echo "No tags on '$wikiId' contain '$CHAR'\n";
}
}
$maintClass = 'CheckTagsChar';
require_once RUN_MAINTENANCE_IF_MAIN;

Event Timeline

Mattflaschen-WMF changed the title of this paste from untitled to Masterwork From Distant Lands.
Mattflaschen-WMF updated the paste's language from autodetect to autodetect.