Skip to content

Commit 06a8051

Browse files
markrandallderickr
authored andcommitted
Fix: Update paths inside download instructions
1 parent 1c6c0b3 commit 06a8051

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

public/downloads-get-instructions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
$version = $options['version'];
6969
$versionNoDot = str_replace('.', '', $version);
7070

71-
if (file_exists(__DIR__ . "/include/download-instructions/{$file}.php")) {
72-
include __DIR__ . "/include/download-instructions/{$file}.php";
71+
if (file_exists(__DIR__ . "/../include/download-instructions/{$file}.php")) {
72+
require __DIR__ . "/../include/download-instructions/{$file}.php";
7373
if ($source) {
7474
return false;
7575
}

public/downloads.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function option(string $value, string $desc, $attributes = []): string
186186

187187
<h2>Instructions</h2>
188188
<div id="instructions" class="instructions">
189-
<?php $instructionsShown = include 'downloads-get-instructions.php'; ?>
189+
<?php $instructionsShown = require 'downloads-get-instructions.php'; ?>
190190
<?php if (!$instructionsShown): ?>
191191

192192
<h2>Source Code</h2>

0 commit comments

Comments
 (0)