Skip to content

Commit

Permalink
🔧 Test workflow
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <[email protected]>
  • Loading branch information
bnomei committed Oct 22, 2023
1 parent 6855e90 commit f771940
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,5 @@
const KIRBY_HELPER_DUMP = false;
const KIRBY_HELPER_E = false;

function patchKirbyHelpers()
{
$h = __DIR__ . '/kirby/config/helpers.php';
if (file_exists($h)) {
// open file and change a function name dump to xdump and save file again
$content = file_get_contents($h);
$content = str_replace('function dump(', 'function xdump(', $content);
$content = str_replace('function e(', 'function xe(', $content);
file_put_contents($h, $content);
}
}
patchKirbyHelpers();

require __DIR__.'/../vendor/autoload.php';
echo (new Kirby())->render();

0 comments on commit f771940

Please sign in to comment.