protected function insecure_dataroot_warning($insecuredataroot) {
        global $CFG;

        if ($insecuredataroot == INSECURE_DATAROOT_WARNING) {
            return $this->warning(get_string('datarootsecuritywarning', 'admin', $CFG->dataroot));

        } else if ($insecuredataroot == INSECURE_DATAROOT_ERROR) {
            return $this->warning(get_string('datarootsecurityerror', 'admin', $CFG->dataroot), 'error');

        } else {
            return '';
        }
    }
protected function insecure_dataroot_warning($insecuredataroot) {
        global $CFG;

        if ($insecuredataroot == INSECURE_DATAROOT_WARNING) {
            return $this->warning(get_string('datarootsecuritywarning', 'admin', $CFG->dataroot));

        } else if ($insecuredataroot == INSECURE_DATAROOT_ERROR) {
            return $this->warning(get_string('datarootsecurityerror', 'admin', $CFG->dataroot), 'error');

        } else {
            return '';
        }
    }
protected function insecure_dataroot_warning ( $ insecuredataroot ) { global $ CFG ; if ( $ insecuredataroot == INSECURE_DATAROOT_WARNING ) { return $ this -> warning ( get_string ( 'datarootsecuritywarning' , 'admin' , $ CFG -> dataroot ) ) ; } else if ( $ insecuredataroot == INSECURE_DATAROOT_ERROR ) { return $ this -> warning ( get_string ( 'datarootsecurityerror' , 'admin' , $ CFG -> dataroot ) , 'error' ) ; } else { return '' ; } }
Render an appropriate message if dataroot is insecure.
@param bool $insecuredataroot
@return string HTML to output.
Render an appropriate message if dataroot is insecure .