prevent php warning
This commit is contained in:
parent
b7eb5e9621
commit
1a76c3ec0f
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ function nitter_install() {
|
||||||
function nitter_render(&$a, &$o) {
|
function nitter_render(&$a, &$o) {
|
||||||
// this needs to be a system setting
|
// this needs to be a system setting
|
||||||
$nitter = 'https://nitter.net';
|
$nitter = 'https://nitter.net';
|
||||||
if (strstr($o[html],'https://twitter.com')) {
|
if (strstr($o['html'],'https://twitter.com')) {
|
||||||
$o['html'] = str_replace('https://twitter.com', $nitter, $o[html]);
|
$o['html'] = str_replace('https://twitter.com', $nitter, $o['html']);
|
||||||
$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>';
|
$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>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue