cvs: pear /Perm_LiveUser/Admin/Perm/Container DB_Medium.php MDB2_Medium.php MDB_Medium.php

From: Date: Mon, 25 Oct 2004 18:59:51 +0000
Subject: cvs: pear /Perm_LiveUser/Admin/Perm/Container DB_Medium.php MDB2_Medium.php MDB_Medium.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-25219@lists.php.net to get a copy of this message
dufuz Mon Oct 25 14:59:51 2004 EDT Modified files: /pear/Perm_LiveUser/Admin/Perm/Container DB_Medium.php MDB2_Medium.php MDB_Medium.php Log: remove translation before the group it self http://cvs.php.net/diff.php/pear/Perm_LiveUser/Admin/Perm/Container/DB_Medium.php?r1=1.83&r2=1.84&ty=u Index: pear/Perm_LiveUser/Admin/Perm/Container/DB_Medium.php diff -u pear/Perm_LiveUser/Admin/Perm/Container/DB_Medium.php:1.83 pear/Perm_LiveUser/Admin/Perm/Container/DB_Medium.php:1.84 --- pear/Perm_LiveUser/Admin/Perm/Container/DB_Medium.php:1.83 Mon Oct 25 14:58:01 2004 +++ pear/Perm_LiveUser/Admin/Perm/Container/DB_Medium.php Mon Oct 25 14:59:50 2004 @@ -51,7 +51,7 @@ * @author Markus Wolff <wolff@21st.de> * @author Matt Scifo <mscifo@php.net> * @author Arnaud Limbourg <arnaud@php.net> - * @version $Id: DB_Medium.php,v 1.83 2004/10/25 18:58:01 dufuz Exp $ + * @version $Id: DB_Medium.php,v 1.84 2004/10/25 18:59:50 dufuz Exp $ * @package LiveUser */ class LiveUser_Admin_Perm_Container_DB_Medium extends LiveUser_Admin_Perm_Container_DB_Simple @@ -180,6 +180,13 @@ return $result; } + // Delete group translations + $result = $this->removeTranslation($groupId, LIVEUSER_SECTION_GROUP, $this->getCurrentLanguage(), true); + + if (DB::isError($result)) { + return $result; + } + // Delete group itself $query = 'DELETE FROM ' . $this->prefix . 'groups @@ -193,13 +200,6 @@ return $result; } - // Delete group translations - $result = $this->removeTranslation($groupId, LIVEUSER_SECTION_GROUP, $this->getCurrentLanguage(), true); - - if (DB::isError($result)) { - return $result; - } - return true; } http://cvs.php.net/diff.php/pear/Perm_LiveUser/Admin/Perm/Container/MDB2_Medium.php?r1=1.43&r2=1.44&ty=u Index: pear/Perm_LiveUser/Admin/Perm/Container/MDB2_Medium.php diff -u pear/Perm_LiveUser/Admin/Perm/Container/MDB2_Medium.php:1.43 pear/Perm_LiveUser/Admin/Perm/Container/MDB2_Medium.php:1.44 --- pear/Perm_LiveUser/Admin/Perm/Container/MDB2_Medium.php:1.43 Mon Oct 25 14:58:01 2004 +++ pear/Perm_LiveUser/Admin/Perm/Container/MDB2_Medium.php Mon Oct 25 14:59:50 2004 @@ -51,7 +51,7 @@ * @author Markus Wolff <wolff@21st.de> * @author Matt Scifo <mscifo@php.net> * @author Arnaud Limbourg <arnaud@php.net> - * @version $Id: MDB2_Medium.php,v 1.43 2004/10/25 18:58:01 dufuz Exp $ + * @version $Id: MDB2_Medium.php,v 1.44 2004/10/25 18:59:50 dufuz Exp $ * @package LiveUser */ class LiveUser_Admin_Perm_Container_MDB2_Medium extends LiveUser_Admin_Perm_Container_MDB2_Simple @@ -181,6 +181,13 @@ return $result; } + // Delete group translations + $result = $this->removeTranslation($groupId, LIVEUSER_SECTION_GROUP, $this->getCurrentLanguage(), true); + + if (MDB2::isError($result)) { + return $result; + } + // Delete group itself $query = 'DELETE FROM ' . $this->prefix . 'groups @@ -194,13 +201,6 @@ return $result; } - // Delete group translations - $result = $this->removeTranslation($groupId, LIVEUSER_SECTION_GROUP, $this->getCurrentLanguage(), true); - - if (MDB2::isError($result)) { - return $result; - } - return true; } http://cvs.php.net/diff.php/pear/Perm_LiveUser/Admin/Perm/Container/MDB_Medium.php?r1=1.68&r2=1.69&ty=u Index: pear/Perm_LiveUser/Admin/Perm/Container/MDB_Medium.php diff -u pear/Perm_LiveUser/Admin/Perm/Container/MDB_Medium.php:1.68 pear/Perm_LiveUser/Admin/Perm/Container/MDB_Medium.php:1.69 --- pear/Perm_LiveUser/Admin/Perm/Container/MDB_Medium.php:1.68 Mon Oct 25 14:58:01 2004 +++ pear/Perm_LiveUser/Admin/Perm/Container/MDB_Medium.php Mon Oct 25 14:59:50 2004 @@ -51,7 +51,7 @@ * @author Markus Wolff <wolff@21st.de> * @author Matt Scifo <mscifo@php.net> * @author Arnaud Limbourg <arnaud@php.net> - * @version $Id: MDB_Medium.php,v 1.68 2004/10/25 18:58:01 dufuz Exp $ + * @version $Id: MDB_Medium.php,v 1.69 2004/10/25 18:59:50 dufuz Exp $ * @package LiveUser */ class LiveUser_Admin_Perm_Container_MDB_Medium extends LiveUser_Admin_Perm_Container_MDB_Simple @@ -181,6 +181,13 @@ return $result; } + // Delete group translations + $result = $this->removeTranslation($groupId, LIVEUSER_SECTION_GROUP, $this->getCurrentLanguage(), true); + + if (MDB::isError($result)) { + return $result; + } + // Delete group itself $query = 'DELETE FROM ' . $this->prefix . 'groups @@ -194,13 +201,6 @@ return $result; } - // Delete group translations - $result = $this->removeTranslation($groupId, LIVEUSER_SECTION_GROUP, $this->getCurrentLanguage(), true); - - if (MDB::isError($result)) { - return $result; - } - return true; }

« previous php.pear.cvs (#25219) next »