]> git.lyx.org Git - lyx.git/commitdiff
* generate_contributions.py - another php 8 choking points
authorPavel Sanda <sanda@lyx.org>
Sat, 2 Mar 2024 23:26:26 +0000 (00:26 +0100)
committerPavel Sanda <sanda@lyx.org>
Sat, 2 Mar 2024 23:26:26 +0000 (00:26 +0100)
lib/generate_contributions.py

index 542d90d719eb7006029df07bef4410b9773e869f..bb0627fe58f3c46b25d9cdafbae0bfe56b6bde86 100755 (executable)
@@ -227,10 +227,12 @@ function blanket_contrib($name, $email, $msg_title, $msg_ref, $date) {
 $email = str_replace(' () ', '@', $email);
 $email = str_replace(' ! ', '.', $email);
 
+if(!isset($output)){ $output = ''; }
+
 $output=$output. "
 
  <dt>
-  <b>[[mailto:${email} | ${name}]]</b>
+  <b>[[mailto:{$email} | {$name}]]</b>
  </dt>
  <dd>
   See the lyx-devel mailing list message
@@ -239,12 +241,12 @@ $output=$output. "
 if (isset($msg_ref) && $msg_ref != "") {
         $msg_ref = htmlspecialchars("$msg_ref");
         if (substr($msg_ref, 0, 2) == "m=") {
-                $output=$output. "[[https://marc.info/?l=lyx-devel&amp;" . ${msg_ref} . "|" . ${msg_title} . "]]";
+                $output=$output. "[[https://marc.info/?l=lyx-devel&amp;" . $msg_ref . "|" . $msg_title . "]]";
         } else {
-                $output=$output. "[[https://www.mail-archive.com/lyx-devel@lists.lyx.org/" . ${msg_ref} . ".html |" . ${msg_title} . "]]";
+                $output=$output. "[[https://www.mail-archive.com/lyx-devel@lists.lyx.org/" . $msg_ref . ".html |" . $msg_title . "]]";
         }
 } else {
-        $output=$output. "${msg_title}";
+        $output=$output. "{$msg_title}";
 }
 
 $output=$output. "&quot;
@@ -256,6 +258,8 @@ return $output;
 
 function blanket_output() {
 
+if(!isset($output)){ $output = ''; }
+
 $output=$output."<p>
      The following people hereby grant permission to license their
      contributions to LyX under the