Fix order of module for demo.

This commit is contained in:
Laurent Destailleur 2016-08-17 11:39:11 +02:00
parent 47489265b1
commit ba8c2dbf9f
3 changed files with 11 additions and 7 deletions

View File

@ -44,13 +44,13 @@ class modHRM extends DolibarrModules
$this->family = "hr";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = preg_replace ( '/^mod/i', '', get_class ( $this ) );
$this->description = "Gestion des ressources humaines";
$this->name = preg_replace( '/^mod/i', '', get_class($this));
$this->description = "Management of employees carrier and feelings";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'development';
$this->const_name = 'MAIN_MODULE_' . strtoupper ( $this->name );
$this->const_name = 'MAIN_MODULE_' . strtoupper($this->name);
$this->special = 0;
// $this->picto = '';

View File

@ -1,4 +1,5 @@
# ADMIN
# Dolibarr language file - Source file is en_US - multicurrency
MultiCurrency=Multi currency
ErrorAddRateFail=Error in added rate
ErrorAddCurrencyFail=Error in added currency
ErrorDeleteCurrencyFail=Error delete fail

View File

@ -90,7 +90,7 @@ if (empty($reshook))
'mailmanspip','notification','oauth','syslog','user','webservices',
// Extended modules
'memcached','numberwords','zipautofillfr');
$alwayshiddenuncheckedmodules=array('ftp','webservicesclient','websites',
$alwayshiddenuncheckedmodules=array('ftp','hrm','webservicesclient','websites',
// Extended modules
'awstats','bittorrent','bootstrap','cabinetmed','cmcic','concatpdf','customfield','deplacement','dolicloud','filemanager','lightbox','mantis','monitoring','moretemplates','multicompany','nltechno','numberingpack','openstreetmap',
'ovh','phenix','phpsysinfo','pibarcode','postnuke','selectbank','skincoloreditor','submiteverywhere','survey','thomsonphonebook','topten','tvacerfa','voyage','webcalendar','webmail');
@ -375,8 +375,11 @@ foreach ($demoprofiles as $profilearray)
$listofdisabledmodules=explode(',',$profilearray['disablemodules']);
$j=0;
$nbcolsmod=empty($conf->dol_optimize_smallscreen)?4:3;
foreach($modules as $val) // Loop on qualified (enabled) modules
//var_dump($modules);
foreach($orders as $index => $key) // Loop on qualified (enabled) modules
{
//print $index.' '.$key;
$val = $modules[$index];
$modulekeyname=strtolower($val->name);
$modulequalified=1;
@ -454,7 +457,7 @@ if (! empty($conf->google->enabled) && ! empty($conf->global->MAIN_GOOGLE_AD_CLI
}
else
{
print '<!-- google js addvert tag disabled with jmobile -->'."\n";
print '<!-- google js advert tag disabled with jmobile -->'."\n";
}
}