log query source uri even with niceurls

This commit is contained in:
Shish 2024-02-09 15:10:29 +00:00
parent 9ba9bf0fdf
commit 12335b680e

View file

@ -208,8 +208,9 @@ class Database
public function _execute(string $query, array $args = []): PDOStatement
{
try {
$uri = $_SERVER['REQUEST_URI'] ?? "unknown uri";
return $this->get_db()->execute(
"-- " . str_replace("%2F", "/", urlencode($_GET['q'] ?? '')). "\n" .
"-- $uri\n" .
$query,
$args
);