Skip to content

Commit

Permalink
Same outcome, different code
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmo213 committed Aug 6, 2024
1 parent 6655682 commit cdf28e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ function() {

$friendlyfilename = "[Listen here](".$filename.")";

$wikiurl = "https://wikipedia.org/wiki/".preg_replace('/ /', '_', $sciname);

$attach="";
$exampleimage = "https://live.staticflickr.com/7430/27545810581_8bfa8289a3_c.jpg";
if (strpos($body, '$flickrimage') !== false) {
Expand All @@ -254,7 +256,7 @@ function() {
$title = str_replace("\$sens", $sens, $title);
$title = str_replace("\$overlap", $overlap, $title);
$title = str_replace("\$flickrimage", $exampleimage, $title);
$title = str_replace("\$wikiurl", "https://wikipedia.org/wiki/".preg_replace('/ /', '_', $sciname), $title);
$title = str_replace("\$wikiurl", $wikiurl, $title);
$title = str_replace("\$reason", 'Test message', $title);

$body = str_replace("\$sciname", $sciname, $body);
Expand All @@ -272,7 +274,7 @@ function() {
$body = str_replace("\$sens", $sens, $body);
$body = str_replace("\$overlap", $overlap, $body);
$body = str_replace("\$flickrimage", $exampleimage, $body);
$body = str_replace("\$wikiurl", "https://wikipedia.org/wiki/".preg_replace('/ /', '_', $sciname), $body);
$body = str_replace("\$wikiurl", $wikiurl, $body);
$body = str_replace("\$reason", 'Test message', $body);

$temp = tmpfile();
Expand Down

0 comments on commit cdf28e3

Please sign in to comment.