public function write_setting($data) {
        global $CFG;
        if (!empty($CFG->preventexecpath)) {
            if ($this->get_setting() === null) {
                // Use default during installation.
                $data = $this->get_defaultsetting();
                if ($data === null) {
                    $data = '';
                }
            } else {
                return '';
            }
        }
        return parent::write_setting($data);
    }
public function write_setting($data) {
        global $CFG;
        if (!empty($CFG->preventexecpath)) {
            if ($this->get_setting() === null) {
                // Use default during installation.
                $data = $this->get_defaultsetting();
                if ($data === null) {
                    $data = '';
                }
            } else {
                return '';
            }
        }
        return parent::write_setting($data);
    }
public function write_setting ( $ data ) { global $ CFG ; if ( ! empty ( $ CFG -> preventexecpath ) ) { if ( $ this -> get_setting ( ) === null ) { // Use default during installation. $ data = $ this -> get_defaultsetting ( ) ; if ( $ data === null ) { $ data = '' ; } } else { return '' ; } } return parent :: write_setting ( $ data ) ; }
Checks if execpatch has been disabled in config.php
Checks if execpatch has been disabled in config . php