Rev 1050 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1050 | Rev 1086 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | use ViaThinkSoft\OIDplus\OIDplus; |
29 | use ViaThinkSoft\OIDplus\OIDplus; |
30 | use ViaThinkSoft\OIDplus\OIDplusConfig; |
30 | use ViaThinkSoft\OIDplus\OIDplusConfig; |
31 | use ViaThinkSoft\OIDplus\OIDplusException; |
31 | use ViaThinkSoft\OIDplus\OIDplusException; |
32 | use ViaThinkSoft\OIDplus\OIDplusPagePluginPublic; |
32 | use ViaThinkSoft\OIDplus\OIDplusPagePluginPublic; |
33 | 33 | ||
- | 34 | // phpcs:disable PSR1.Files.SideEffects |
|
- | 35 | \defined('INSIDE_OIDPLUS') or die; |
|
- | 36 | // phpcs:enable PSR1.Files.SideEffects |
|
- | 37 | ||
34 | class OIDplusPagePublicUITweaks extends OIDplusPagePluginPublic { |
38 | class OIDplusPagePublicUITweaks extends OIDplusPagePluginPublic { |
35 | 39 | ||
36 | public function init($html=true) { |
40 | public function init($html=true) { |
37 | OIDplus::config()->prepareConfigKey('uitweaks_expand_objects_tree', 'UITweaks plugin: 1=Fully expand objects tree on page reload, 0=Default behavior', '0', OIDplusConfig::PROTECTION_EDITABLE, function($value) { |
41 | OIDplus::config()->prepareConfigKey('uitweaks_expand_objects_tree', 'UITweaks plugin: 1=Fully expand objects tree on page reload, 0=Default behavior', '0', OIDplusConfig::PROTECTION_EDITABLE, function($value) { |
38 | if (!is_numeric($value) || ($value < 0) || ($value > 1)) { |
42 | if (!is_numeric($value) || ($value < 0) || ($value > 1)) { |