MDL-53837 assign: Fix executable check for 'unoconv.py' on Windows.
This commit is contained in:
+2
-1
@@ -2543,9 +2543,10 @@ class admin_setting_configexecutable extends admin_setting_configfile {
|
||||
public function output_html($data, $query='') {
|
||||
global $CFG;
|
||||
$default = $this->get_defaultsetting();
|
||||
require_once("$CFG->libdir/filelib.php");
|
||||
|
||||
if ($data) {
|
||||
if (file_exists($data) and !is_dir($data) and is_executable($data)) {
|
||||
if (file_exists($data) and !is_dir($data) and file_is_executable($data)) {
|
||||
$executable = '<span class="pathok">✔</span>';
|
||||
} else {
|
||||
$executable = '<span class="patherror">✘</span>';
|
||||
|
||||
Reference in New Issue
Block a user