[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/common/include Group.class,1.48,1.49
From: |
cbayle |
Subject: |
[Gforge-commits] gforge/common/include Group.class,1.48,1.49 |
Date: |
Thu, 22 Jul 2004 14:07:23 -0500 |
Update of /cvsroot/gforge/gforge/common/include
In directory db.perdue.net:/tmp/cvs-serv17934/common/include
Modified Files:
Group.class
Log Message:
cvs do scm renaming
Index: Group.class
===================================================================
RCS file: /cvsroot/gforge/gforge/common/include/Group.class,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- Group.class 22 Jul 2004 11:34:11 -0000 1.48
+++ Group.class 22 Jul 2004 19:07:21 -0000 1.49
@@ -238,7 +238,7 @@
* @param string The 'other' license to use if any.
* @param string The purpose of the group.
*/
- function create(&$user, $full_name, $unix_name, $description, $license,
$license_other, $purpose, $unix_box='shell1', $cvs_box='cvs1') {
+ function create(&$user, $full_name, $unix_name, $description, $license,
$license_other, $purpose, $unix_box='shell1', $scm_box='cvs1') {
// $user is ignored - anyone can create pending group
@@ -262,7 +262,7 @@
homepage,
status,
unix_box,
- cvs_box,
+ scm_box,
license,
register_purpose,
register_time,
@@ -278,7 +278,7 @@
'$unix_name.".$GLOBALS['sys_default_domain']."',
'P',
'$unix_box',
- '$cvs_box',
+ '$scm_box',
'$license',
'".htmlspecialchars($purpose)."',
".time().",
@@ -420,7 +420,7 @@
function update(&$user,
$group_name,$homepage,$short_description,$use_mail,$use_survey,$use_forum,
$use_pm,$use_pm_depend_box,$use_scm,$use_news,$use_docman,
$new_doc_address,$send_all_docs,$logo_image_id,
- $enable_pserver,$enable_anoncvs,
+ $enable_pserver,$enable_anonscm,
$use_ftp,$use_tracker,$use_frs,$use_stats) {
global $Language;
@@ -476,12 +476,6 @@
if (!$send_all_tasks) {
$send_all_tasks=0;
}
- if (!$enable_pserver) {
- $enable_pserver=0;
- }
- if (!$enable_anoncvs) {
- $enable_anoncvs=0;
- }
if (!$use_ftp) {
$use_ftp=0;
}
@@ -521,13 +515,23 @@
use_forum='$use_forum',
use_pm='$use_pm',
use_pm_depend_box='$use_pm_depend_box',
- use_cvs='$use_scm',
+ use_scm='$use_scm',
use_news='$use_news',
use_docman='$use_docman',
new_doc_address='$new_doc_address',
send_all_docs='$send_all_docs',
+ ";
+ if ($enable_pserver != '') {
+ $sql .= "
enable_pserver='$enable_pserver',
- enable_anoncvs='$enable_anoncvs',
+ ";
+ }
+ if ($enable_anonscm != '') {
+ $sql .= "
+ enable_anonscm='$enable_anonscm',
+ ";
+ }
+ $sql .= "
use_ftp='$use_ftp',
use_tracker='$use_tracker',
use_frs='$use_frs',
@@ -872,13 +876,13 @@
*/
/**
- * enableAnonCVS - whether or not this group has opted to enable
Anonymous CVS.
+ * enableAnonSCM - whether or not this group has opted to enable
Anonymous SCM.
*
- * @return boolean enable_cvs.
+ * @return boolean enable_scm.
*/
- function enableAnonCVS() {
+ function enableAnonSCM() {
if ($this->usesSCM()) {
- return $this->data_array['enable_anoncvs'];
+ return $this->data_array['enable_anonscm'];
} else {
return false;
}
@@ -900,12 +904,12 @@
/**
* usesSCM - whether or not this group has opted to use SCM.
*
- * @return boolean uses_cvs.
+ * @return boolean uses_scm.
*/
function usesSCM() {
global $sys_use_scm;
if ($sys_use_scm) {
- return $this->data_array['use_cvs'];
+ return $this->data_array['use_scm'];
} else {
return false;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/common/include Group.class,1.48,1.49,
cbayle <=