Skip to content

Commit dead293

Browse files
authored
Merge pull request #1167 from tobiasd/20210909-nitter
nitter: typo in variable name
2 parents 28e7048 + ce91f96 commit dead293

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nitter/nitter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ function nitter_render(&$a, &$o)
6565
$nitter = DI::config()->get('nitter', 'server', 'https://nitter.net');
6666
if (strstr($o['html'], 'https://mobile.twitter.com')) {
6767
$o['html'] = str_replace('https://mobile.twitter.com', $nitter, $o['html']);
68-
$replace = true;
68+
$replaced = true;
6969
}
7070
if (strstr($o['html'], 'https://twitter.com')) {
7171
$o['html'] = str_replace('https://twitter.com', $nitter, $o['html']);
72-
$replace = true;
72+
$replaced = true;
7373
}
74-
if ($replace) {
74+
if ($replaced) {
7575
$o['html'] .= '<hr><p>' . DI::l10n()->t('Links to Twitter in this posting were replaced by links to the Nitter instance at %s', $nitter) . '</p>';
7676
}
7777
}

0 commit comments

Comments
 (0)