commit | a00c43e900ece64cfa96b2e9f5489c0530e4ff2c | [log] [tgz] |
---|---|---|
author | avm99963 <jocdeladria@gmail.com> | Wed Sep 26 20:16:07 2018 +0200 |
committer | avm99963 <jocdeladria@gmail.com> | Wed Sep 26 20:16:07 2018 +0200 |
tree | 2bfc79cf3b261441c1eb1461c78b1580642a9efe | |
parent | f7592e2ea92e694a0269a624027b7e979e7ce307 [diff] [blame] |
Acabat nou disseny de la barra de cerca
diff --git a/api.php b/api.php index 26b655a..176fdfe 100644 --- a/api.php +++ b/api.php
@@ -2,13 +2,13 @@ require_once("config.php"); class write { - public static function funct($json) { + public static function output($json) { print_r(json_encode($json)); exit(); } public static function error($n, $msg) { - self::funct(["error" => $n, "msg" => $msg]); + self::output(["error" => $n, "msg" => $msg]); } }