Skip to content

Commit

Permalink
Fix: Change to make debian package ok despite removal of ckeditor
Browse files Browse the repository at this point in the history
package.
  • Loading branch information
eldy committed Jan 5, 2014
1 parent 0e54780 commit 5a7fe6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/admin/modules.php
Expand Up @@ -154,7 +154,8 @@
$const_name = 'MAIN_MODULE_'.strtoupper(preg_replace('/^mod/i','',get_class($objMod)));
if ($objMod->version == 'development' && (empty($conf->global->$const_name) && ($conf->global->MAIN_FEATURES_LEVEL < 2))) $modulequalified=0;
if ($objMod->version == 'experimental' && (empty($conf->global->$const_name) && ($conf->global->MAIN_FEATURES_LEVEL < 1))) $modulequalified=0;
//if ($mode == 'expdev' && ($objMod->version != 'experimental' && $objMod->version != 'development')) $modulequalified=0;
// We discard modules according to property disabled
if (! empty($objMod->hidden)) $modulequalified=false;

// Define array $categ with categ with at least one qualified module
if ($modulequalified)
Expand Down
2 changes: 2 additions & 0 deletions htdocs/core/modules/modFckeditor.class.php
Expand Up @@ -62,6 +62,8 @@ function __construct($db)
$this->config_page_url = array("fckeditor.php");

// Dependances
global $dolibarr_js_CKEDITOR;
$this->hidden = ($dolibarr_js_CKEDITOR == 'disabled'?1:0); // A condition to disable module (used for native debian packages)
$this->depends = array();
$this->requiredby = array();

Expand Down

0 comments on commit 5a7fe6b

Please sign in to comment.