public function get_return_action() {
        global $PAGE;

        // Web services don't set a URL, we should avoid debugging when ussing the url object.
        if (!WS_SERVER) {
            $params = $PAGE->url->params();
        }

        if (!empty($params['action'])) {
            return $params['action'];
        }
        return '';
    }
public function get_return_action() {
        global $PAGE;

        // Web services don't set a URL, we should avoid debugging when ussing the url object.
        if (!WS_SERVER) {
            $params = $PAGE->url->params();
        }

        if (!empty($params['action'])) {
            return $params['action'];
        }
        return '';
    }
public function get_return_action ( ) { global $ PAGE ; // Web services don't set a URL, we should avoid debugging when ussing the url object. if ( ! WS_SERVER ) { $ params = $ PAGE -> url -> params ( ) ; } if ( ! empty ( $ params [ 'action' ] ) ) { return $ params [ 'action' ] ; } return '' ; }
Return an action that can be used to get back to the current page.

@return string action
Return an action that can be used to get back to the current page .