Ticket #7653: 7653.r8781.diff
| File 7653.r8781.diff, 591 bytes (added by , 17 years ago) |
|---|
-
formatting.php
2019 2019 $result = array_shift($args); 2020 2020 if ( count($args) == 1 ) 2021 2021 $result .= $l['between_only_two'] . array_shift($args); 2022 // Loop when more than two args 2023 while ( count($args) ) {2022 2023 while ( $i = count($args) ) { 2024 2024 $arg = array_shift($args); 2025 2025 if ( $i == 1 ) 2026 2026 $result .= $l['between_last_two'] . $arg; 2027 2027 else 2028 2028 $result .= $l['between'] . $arg; 2029 2029 } 2030 2030 2031 return $result . substr($pattern, 2); 2031 2032 } 2032 2033