From 485d2c1a58743b3898d8cc5a3a2ac97be7126f00 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 5 Oct 2017 10:24:38 +0000 Subject: [PATCH] done #1719 @1 --- inc/ws/Controlleur/class.ws.flash.php | 9 +++++---- inc/ws/Controlleur/class.ws.maintenance.php | 13 +++++++++---- inc/ws/Metier/class.ws.parametres.php | 4 +--- inc/ws/Metier/class.ws.theme.parametres.php | 2 +- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/inc/ws/Controlleur/class.ws.flash.php b/inc/ws/Controlleur/class.ws.flash.php index 5012de48d..70f0d1672 100644 --- a/inc/ws/Controlleur/class.ws.flash.php +++ b/inc/ws/Controlleur/class.ws.flash.php @@ -105,9 +105,9 @@ class wsFlash extends cubeFlashGateway { unset($_SESSION['conversionSessionReload']); $session->serialize(); - $executable='php'; - if(AMARCORD){ - $executable='/usr/bin/php5.6'; + $executable = 'php'; + if (AMARCORD) { + $executable = '/usr/bin/php5.6'; } $php = new cubeCommandLine($executable); $php->setPath(CONVERTER_PATH); @@ -413,12 +413,13 @@ class wsFlash extends cubeFlashGateway { public function getAllIcones() { global $core; $dao = new wsDAOIcone($core->con); - $icones = $dao->selectAll('ORDER BY icone_id DESC'); + $icones = $dao->selectAll('ORDER BY FIELD(icone_id,13,15) DESC, icone_id DESC'); foreach ($icones as $icone) { $i = $this->xml->addChild('icone'); $i->addAttribute('id', $icone->icone_id); $i->addAttribute('nom', $icone->nom); $i->addAttribute('path', ICONS . $icone->icone_id . '.png'); + $i->addAttribute('main', in_array($icone->icone_id,array(13, 15))); } } diff --git a/inc/ws/Controlleur/class.ws.maintenance.php b/inc/ws/Controlleur/class.ws.maintenance.php index 2bee8c15f..9ca6671ff 100644 --- a/inc/ws/Controlleur/class.ws.maintenance.php +++ b/inc/ws/Controlleur/class.ws.maintenance.php @@ -1498,11 +1498,16 @@ class wsMaintenance { $res .= "\n\t" . ''; } - $res .= "\n" . ' - + $res .= "\n" . ' + - - + + '; $res .= "\n" . ''; diff --git a/inc/ws/Metier/class.ws.parametres.php b/inc/ws/Metier/class.ws.parametres.php index 13436960f..57b21ebbf 100644 --- a/inc/ws/Metier/class.ws.parametres.php +++ b/inc/ws/Metier/class.ws.parametres.php @@ -245,6 +245,4 @@ class wsParametres extends cubeMetier implements Iterator { return $v; } -} - -?> \ No newline at end of file +} \ No newline at end of file diff --git a/inc/ws/Metier/class.ws.theme.parametres.php b/inc/ws/Metier/class.ws.theme.parametres.php index 547fc0036..8ea2fc231 100644 --- a/inc/ws/Metier/class.ws.theme.parametres.php +++ b/inc/ws/Metier/class.ws.theme.parametres.php @@ -72,7 +72,7 @@ class wsThemeParametres extends wsParametres { $this->forms['search'] = array('label' => __('Personnalisation de la recherche'), 'fieldsnames' => array('couleurS', 'searchFieldColor', 'searchShadeAlpha', 'searchFieldWidth', '|', 'highlightColor', '|', 'searchIndexNoResultColor')); /* Icones */ - $this->fields['iconSet'] = array('type' => 'icones', 'default' => 1, 'editable' => true, + $this->fields['iconSet'] = array('type' => 'icones', 'default' => 15, 'editable' => true, 'label' => __("Jeu d'icônes")); $this->fields['colorizeIcons'] = array('type' => 'boolean', 'default' => false, 'editable' => true, 'label' => __('Colorier les icônes')); -- 2.39.5