]> git.lyx.org Git - lyx.git/blobdiff - lib/generate_contributions.py
* generate_contributions.py - php 8 chokes on those
[lyx.git] / lib / generate_contributions.py
index 36316db33dfd678c571e3769adef3951a67634b0..542d90d719eb7006029df07bef4410b9773e869f 100755 (executable)
@@ -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,