aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/Helpers.php
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-11-11 05:50:53 -0500
committerThedro Neely <thedroneely@gmail.com>2022-11-11 05:50:53 -0500
commitabdbac031912a395c7524ad0e6f5c70c918531b2 (patch)
treea84ad67c6c671c04cda3a155159cbf99b0dc54d0 /bootstrap/Helpers.php
parent986f4ca2a835a22e6d9faa95e5d33d907de6281e (diff)
downloadthedroneely.com-abdbac031912a395c7524ad0e6f5c70c918531b2.tar.gz
thedroneely.com-abdbac031912a395c7524ad0e6f5c70c918531b2.tar.bz2
thedroneely.com-abdbac031912a395c7524ad0e6f5c70c918531b2.zip
app/storage/cache/.keep -> storage/cache/.keep
Diffstat (limited to 'bootstrap/Helpers.php')
-rw-r--r--bootstrap/Helpers.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstrap/Helpers.php b/bootstrap/Helpers.php
index 76ee478..b3cc870 100644
--- a/bootstrap/Helpers.php
+++ b/bootstrap/Helpers.php
@@ -31,7 +31,7 @@ function views(string $folder, string $name)
function cache(string $filename, string $data)
{
file_put_contents(
- $_SERVER['DOCUMENT_ROOT'] . '/..' . '/app/storage/cache/'
+ $_SERVER['DOCUMENT_ROOT'] . '/..' . '/storage/cache/'
. base64_encode($filename), $data
);
}
@@ -40,12 +40,12 @@ function fetch(string $uri, string $field)
{
if (file_exists(
$_SERVER['DOCUMENT_ROOT'] . '/..'
- . '/app/storage/cache/' . base64_encode($uri . $field)
+ . '/storage/cache/' . base64_encode($uri . $field)
)
) {
echo file_get_contents(
$_SERVER['DOCUMENT_ROOT'] . '/..'
- . '/app/storage/cache/' . base64_encode($uri . $field)
+ . '/storage/cache/' . base64_encode($uri . $field)
);
return;
}