1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00
This commit is contained in:
Ryan Cramer
2022-03-18 14:38:20 -04:00
parent a5e397d005
commit 0674776c4b

View File

@@ -550,6 +550,13 @@ class ProcessModuleInstall extends Wire {
public function installDisabledLabel($type) {
$config = $this->wire()->config;
$a = $config->moduleInstall;
if(!is_writable($config->paths->siteModules)) {
return
sprintf($this->_('Your %s path is currently not writable.'), $config->urls->siteModules) . ' ' .
$this->_('It must be made writable to ProcessWire before you can enable this module installation option.');
}
$debug = !empty($a[$type]) && $a[$type] === 'debug';
$opt1 = "`\$config->moduleInstall('$type', true);` " . $this->_('to enable always');
$opt2 = "`\$config->debug = true;` " . $this->_('temporarily');