]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/template/error-json.php
Merge pull request #3367 from lonvia/address-word-counts
[nominatim.git] / lib-php / template / error-json.php
index 67297dd1dcf3a6f992a50a099d7f89b25a06a906..fea7d5c52b772f7643c043a37f661a93a2c9a51e 100644 (file)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * SPDX-License-Identifier: GPL-2.0-only
+ *
+ * This file is part of Nominatim. (https://nominatim.org)
+ *
+ * Copyright (C) 2022 by the Nominatim developer community.
+ * For a full list of authors see the git log.
+ */
     $error = array(
               'code' => $exception->getCode(),
               'message' => $exception->getMessage()
@@ -8,4 +16,4 @@
         $error['details'] = $exception->getFile() . '('. $exception->getLine() . ')';
     }
 
-    echo javascript_renderData(array('error' => $error));
+    javascript_renderData(array('error' => $error));