* generate_contributions.py - php 8 chokes on those

@anyone: please do not commit changes generated by generate_contributions.py
until we switch to the new web server. Not sure what will this output do
with older php.
This commit is contained in:
Pavel Sanda 2024-03-03 00:07:08 +01:00
parent 5c5765061f
commit 0bd6fe0fc4

View File

@ -162,20 +162,22 @@ function credits_contrib($name, $email, $msg) {
$email = str_replace(' () ', '@', $email);
$email = str_replace(' ! ', '.', $email);
if(!isset($output)){ $output = ''; }
if (isset($email) && $email != "") {
if (strncasecmp($email,"https",4) == 0)
$output =$output. "<dt><b>[[${email} | ${name}]]</b>";
$output =$output. "<dt><b>[[{$email} | {$name}]]</b>";
else
$output=$output. "<dt><b>[[mailto:${email} | ${name}]]</b>";
$output=$output. "<dt><b>[[mailto:{$email} | {$name}]]</b>";
} else
$output=$output. "<dt><b>${name}</b>";
$output=$output. "<dt><b>{$name}</b>";
$msg = preg_replace("/\\n */", "\\n ", ltrim($msg));
$output=$output. "
</dt>
<dd>
${msg}
{$msg}
</dd>";
return $output;
@ -183,6 +185,8 @@ return $output;
function credits_output() {
if(!isset($output)){ $output = ''; }
$output=$output."<p>
If your name doesn't appear here although you've done
something for LyX, or your entry is wrong or incomplete,