mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 10:45:54 +02:00
Fix issue processwire/processwire-issues#1513
This commit is contained in:
@@ -550,6 +550,13 @@ class ProcessModuleInstall extends Wire {
|
|||||||
public function installDisabledLabel($type) {
|
public function installDisabledLabel($type) {
|
||||||
$config = $this->wire()->config;
|
$config = $this->wire()->config;
|
||||||
$a = $config->moduleInstall;
|
$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';
|
$debug = !empty($a[$type]) && $a[$type] === 'debug';
|
||||||
$opt1 = "`\$config->moduleInstall('$type', true);` " . $this->_('to enable always');
|
$opt1 = "`\$config->moduleInstall('$type', true);` " . $this->_('to enable always');
|
||||||
$opt2 = "`\$config->debug = true;` " . $this->_('temporarily');
|
$opt2 = "`\$config->debug = true;` " . $this->_('temporarily');
|
||||||
|
Reference in New Issue
Block a user