Skip to content

Commit 3da2898

Browse files
author
Hella Breitkopf
committed
fix output errors occurring with IPv6
1 parent c78bff0 commit 3da2898

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

lang/de-informal/lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
$lang['you_use_v4'] = 'Du verwendest altmodisches IPv4';
33
$lang['you_use_v6'] = 'Du verwendest IPv6';
44
$lang['ipv4_from'] = 'IPv4 Verbindung von %s';
5-
$lang['ipv6_from'] = 'IPv4 Verbindung von %s';
5+
$lang['ipv6_from'] = 'IPv6 Verbindung von %s';
66

lang/de/lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
$lang['you_use_v4'] = 'Sie verwenden altmodisches IPv4';
33
$lang['you_use_v6'] = 'Sie verwenden IPv6';
44
$lang['ipv4_from'] = 'IPv4 Verbindung von %s';
5-
$lang['ipv6_from'] = 'IPv4 Verbindung von %s';
5+
$lang['ipv6_from'] = 'IPv6 Verbindung von %s';
66

lang/en/lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
$lang['you_use_v4'] = 'You are using old fashioned IPv4';
33
$lang['you_use_v6'] = 'You are using IPv6';
44
$lang['ipv4_from'] = 'IPv4 connection from %s';
5-
$lang['ipv6_from'] = 'IPv4 connection from %s';
5+
$lang['ipv6_from'] = 'IPv6 connection from %s';
66

syntax.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,19 @@ public function render($mode, Doku_Renderer $renderer, $data) {
6464
if($data['yourip_type']=="box"){
6565
$text="\n<div id='yourip' class='$type'>";
6666
if($type=='ipv6') {
67-
$text .= $this->getLang('you_use_v6'); // "You've got IPv6"
68-
$text .= "<br/> ";
69-
$text .= sprintf( $this->getLang('ipv6_from'), $ip); // "IPv6 connection from $ip"
67+
$text .= $this->getLang('you_use_v6'); // "You've got IPv6"
68+
$text .= "<br/> ";
69+
$text .= sprintf( $this->getLang('ipv6_from'), $ip); // "IPv6 connection from $ip"
7070
}
71-
else
72-
$text .= $this->getLang('you_use_v4'); // "You use old fashioned IPv4"
73-
$text .= "<br/>";
74-
$text .= sprintf( $this->getLang('ipv4_from'), $ip); // "IPv4 connection from $ip"
71+
else
72+
{
73+
$text .= $this->getLang('you_use_v4'); // "You use old fashioned IPv4"
74+
$text .= "<br/>";
75+
$text .= sprintf( $this->getLang('ipv4_from'), $ip); // "IPv4 connection from $ip"
7576
$text .="</div>\n";
76-
$renderer->doc .= $text;
77-
return true;
77+
}
78+
$renderer->doc .= $text;
79+
return true;
7880

7981
#info as line
8082
}elseif($data['yourip_type']=="line"){
@@ -83,7 +85,7 @@ public function render($mode, Doku_Renderer $renderer, $data) {
8385
$text .= sprintf( $this->getLang('ipv6_from'), $ip); // "IPv6 connection from $ip"
8486
else
8587
$text .= sprintf( $this->getLang('ipv4_from'), $ip); // "IPv4 connection from $ip"
86-
$text .="</p>\n";
88+
$text .="</p>\n";
8789
$renderer->doc .= $text;
8890
return true;
8991

0 commit comments

Comments
 (0)