Comment out debugging lines in NodaWikidataFetcher
This commit is contained in:
parent
a68a03e628
commit
12a7937218
@ -224,7 +224,6 @@ final class NodaWikidataFetcher {
|
||||
|
||||
$input = str_replace("\t", " ", $input);
|
||||
|
||||
return $input;
|
||||
// Remove newlines with ensuing spaces
|
||||
while (strpos($input, PHP_EOL . " ") !== false) {
|
||||
$input = str_replace(PHP_EOL . " ", PHP_EOL, $input);
|
||||
@ -629,7 +628,7 @@ final class NodaWikidataFetcher {
|
||||
|
||||
$output = [];
|
||||
|
||||
$descs = [];
|
||||
# $descs = [];
|
||||
foreach ($checkagainstLanguage as $lang) {
|
||||
|
||||
if (!empty($languagesToFetch[$lang]) && !empty($data['sitelinks'][$lang . 'wiki']) && !empty($wikilinks[$lang])) {
|
||||
@ -650,7 +649,7 @@ final class NodaWikidataFetcher {
|
||||
}
|
||||
|
||||
if ($tDescription !== '') {
|
||||
$descs[$lang] = $tDescription;
|
||||
# $descs[$lang] = $tDescription;
|
||||
$desc_cleaned = self::_cleanWikidataInput($tDescription);
|
||||
if ($desc_cleaned !== '') {
|
||||
$output[$lang] = [
|
||||
|
Loading…
Reference in New Issue
Block a user