mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-01-24 01:59:14 +00:00
extensionIsDisabled() returns true if extension isn't installed
This commit is contained in:
parent
f6cded950b
commit
237aa79140
|
|
@ -1781,13 +1781,13 @@ class Settings { /* {{{ */
|
|||
* Check if extension is disabled
|
||||
*
|
||||
* @param string $extname name of extension
|
||||
* @return true if extension is disabled
|
||||
* @return true if extension is disabled or extension could not be found in configuration
|
||||
*/
|
||||
public function extensionIsDisabled($extname) { /* {{{ */
|
||||
if(array_key_exists($extname, $this->_extensions))
|
||||
return $this->_extensions[$extname]['__disable__'];
|
||||
|
||||
return false;
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user