diff --git a/templates/wg/logging.php b/templates/wg/logging.php
index 5ea440f8..26ab9e5d 100644
--- a/templates/wg/logging.php
+++ b/templates/wg/logging.php
@@ -8,10 +8,7 @@
aria-describedby="wgLogEnable">
- '.htmlspecialchars($log, ENT_QUOTES).'';
+ '.htmlspecialchars($wg_log, ENT_QUOTES).'';
?>