diff --git a/VERSIONS b/VERSIONS index 5bdea27eb603044d92b53f181844ff3d6dd4cff0..0947e1f2f8f80503b3c5d1587af44347dbcb3617 100644 --- a/VERSIONS +++ b/VERSIONS @@ -1,3 +1,12 @@ +22/02/2016 - v7.5.12 + + - ticket #37996 : Premier chapitre : correction de l'image ancrable dans la liste de résultats et la vue notice + + - ticket #38583 : Correction d'une mécanique de suppression d'utilisateur ne supprimant pas les données qui lui sont liées + + - ticket #38918 : Modèles de fusion : Prise en charge du libellé de civilité. + + 18/02/2016 - v7.5.11 - ticket #38716 : correction du répertoire de sauvegarde des images de captcha diff --git a/library/Class/Users.php b/library/Class/Users.php index 4d89ce25f115178568617a8e465c9dabc3596aa4..6e9f55f9e321162559f36a3d2a41ac29d701eb61 100644 --- a/library/Class/Users.php +++ b/library/Class/Users.php @@ -976,9 +976,9 @@ class Class_Users extends Storm_Model_Abstract { } - public function deleteUser($id_user) - { - sqlExecute("delete from bib_admin_users where ID_USER=$id_user"); + public function deleteUser($id_user) { + if ($user = $this->getLoader()->find($id_user)) + $user->delete(); } @@ -1700,5 +1700,14 @@ class Class_Users extends Storm_Model_Abstract { public function setAdminSkin($datas) { return $this->getSettingsModel()->setAdminSkin($datas); } + + + public function getLibelleCivilite() { + $title = $this->getCivilite(); + $labels = $this->getLoader()->getCivilitiesLabels(); + + return (static::CIVILITE_INDEFINIE != $title || array_key_exists($title, $labels)) + ? $labels[$title] + : ''; + } } -?> \ No newline at end of file diff --git a/library/ZendAfi/View/Helper/PremierChapitre/Lien.php b/library/ZendAfi/View/Helper/PremierChapitre/Lien.php index 8ad3e9c213c32eaa8e6e24617d316d5ecd8daa1d..472288ede78ca8cf981175aff9a9007b95138cec 100644 --- a/library/ZendAfi/View/Helper/PremierChapitre/Lien.php +++ b/library/ZendAfi/View/Helper/PremierChapitre/Lien.php @@ -66,7 +66,7 @@ class ZendAfi_View_Helper_PremierChapitre_Lien protected function _getImage() { return $this->_tag('img', null, - ['src' => '/public/opac/images/lireavecpremierchapitre.png', + ['src' => Class_Profil::getCurrentProfil()->getUrlImage('lireavecpremierchapitre.png'), 'style' => 'height: 30px; margin-left: 30px;']); } } \ No newline at end of file diff --git a/library/startup.php b/library/startup.php index cc1911f43c0f9edf817d2306098786a5661ba056..111cf50cd8e5f27f240111bdc45d9e895b04167a 100644 --- a/library/startup.php +++ b/library/startup.php @@ -65,7 +65,7 @@ function defineConstant($name, $value) { function setupConstants() { defineConstant('BOKEH_MAJOR_VERSION','7.5'); - defineConstant('BOKEH_RELEASE_NUMBER', BOKEH_MAJOR_VERSION . '.11'); + defineConstant('BOKEH_RELEASE_NUMBER', BOKEH_MAJOR_VERSION . '.12'); defineConstant('BOKEH_REMOTE_FILES', 'http://git.afi-sa.fr/afi/opacce/');