Issue Bug Rejected

#56208Remove redundant method admin_query or sql_query

Stefano Kowalke 02/22/14, 10:14 updated 05/19/15, 12:07

Description

Both method doing exactly the same thing:

    public function sql_query($query) {
        $res = $this->query($query);
        if ($this->debugOutput) {
            $this->debug('sql_query', $query);
        }
        return $res;
    }

    public function admin_query($query) {
        $res = $this->query($query);
        if ($this->debugOutput) {
            $this->debug('admin_query', $query);
        }
        return $res;

Can’t see the reason why we need both methods. I would prefer to remove the sql_query().

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.