Removing uses of $bugsys
[bugdar.git] / search.php
index 6014a6eda4c4a15e0aed4e2418b73341c1ae4a5b..4a54301386cc6e9e43235a1346ca4afc5d6317c6 100644 (file)
@@ -231,7 +231,7 @@ if ($_REQUEST['do'] == 'process')
        {
                // force email or name?? make a distinction?
                // more elegant way to do this? probably
-               $user = $db->queryFirst("SELECT * FROM " . TABLE_PREFIX . "user WHERE email LIKE '%" . str_replace('%', '\%', $bugsys->input_escape('reporter')) . "' OR displayname LIKE '%" . str_replace('%', '\%', $bugsys->input_escape('reporter')) . "%'");
+               $user = $db->queryFirst("SELECT * FROM " . TABLE_PREFIX . "user WHERE email LIKE '%" . str_replace('%', '\%', $input->inputEscape('reporter')) . "' OR displayname LIKE '%" . str_replace('%', '\%', $input->inputEscape('reporter')) . "%'");
                if ($user['userid'])
                {
                        $querybuild['reporter'] = "AND bug.userid = $user[userid] OR comment.userid = $user[userid]";
@@ -537,7 +537,7 @@ if ($_POST['do'] == 'doupdate')
                        continue;
                }
                                
-               $api = new BugApi($bugsys);
+               $api = new BugApi();
                $api->set('bugid', $bug['bugid']);
                $api->values = $bug;