From: Alan Date: Tue, 15 Feb 2022 08:54:34 +0000 (+0800) Subject: fix warnings X-Git-Url: http://git.roojs.org/?p=web.mtrack;a=commitdiff_plain;h=be97e52549979874b41bf47ea90339a21bfd3202 fix warnings --- diff --git a/MTrackWeb.php b/MTrackWeb.php index b78a4d5b..27a511ae 100644 --- a/MTrackWeb.php +++ b/MTrackWeb.php @@ -276,7 +276,7 @@ class MTrackWeb extends HTML_FlexyFramework_Page return HTML_FlexyFramework::run('Wiki/Today'); } - function post() + function post($request) { header("Status: 404 Not Found"); die("invalid post request? "); diff --git a/MTrackWeb/Hook/git.php b/MTrackWeb/Hook/git.php index ce006296..8ffbb005 100755 --- a/MTrackWeb/Hook/git.php +++ b/MTrackWeb/Hook/git.php @@ -51,7 +51,7 @@ class MTrackWeb_Hook_git extends MTrackWeb - function get($action) + function get($action='') { try { $repo = DB_DataObject::factory('mtrack_repos');