summaryrefslogtreecommitdiff
path: root/web/_views
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-03-30 21:28:46 -0400
committerFreya Murphy <freya@freyacat.org>2024-03-30 21:28:46 -0400
commitef7b0e26fadb882e026f1b447b6d18259057c040 (patch)
treef5831c9c64b3fd95d8fa73b382d1717e10370684 /web/_views
parentpost comments, refactor post loading, hide load more btn (diff)
downloadxssbook2-ef7b0e26fadb882e026f1b447b6d18259057c040.tar.gz
xssbook2-ef7b0e26fadb882e026f1b447b6d18259057c040.tar.bz2
xssbook2-ef7b0e26fadb882e026f1b447b6d18259057c040.zip
refactor asset dir, refactor oberver in lib
Diffstat (limited to 'web/_views')
-rw-r--r--web/_views/modal/new_post.php1
-rw-r--r--web/_views/template/post.php2
2 files changed, 1 insertions, 2 deletions
diff --git a/web/_views/modal/new_post.php b/web/_views/modal/new_post.php
index 82243fb..71028ad 100644
--- a/web/_views/modal/new_post.php
+++ b/web/_views/modal/new_post.php
@@ -40,7 +40,6 @@
success: function(data) {
window.location.reload();
},
- error: errorToast
});
});
</script>
diff --git a/web/_views/template/post.php b/web/_views/template/post.php
index 4fbf485..0541026 100644
--- a/web/_views/template/post.php
+++ b/web/_views/template/post.php
@@ -28,7 +28,7 @@
<?php endif; ?>
<div class="col comments">
<?php
- $_GET['id'] = $post['id'];
+ $_GET = array('id' => $post['id']);
$cdata = $this->comments();
$loaded = $cdata['loaded'];