[evolvis-commits] r16935: Minor: SQL in uppercase or indent changes.
mirabilos at evolvis.org
mirabilos at evolvis.org
Tue Mar 1 01:49:20 CET 2011
Author: mirabilos
Date: 2011-03-01 01:49:20 +0100 (Tue, 01 Mar 2011)
New Revision: 16935
Modified:
trunk/gforge_base/evolvisforge-5.1/src/common/include/Group.class.php
trunk/gforge_base/evolvisforge-5.1/src/common/include/utils.php
trunk/gforge_base/evolvisforge-5.1/src/common/pm/ProjectTask.class.php
trunk/gforge_base/evolvisforge-5.1/src/www/softwaremap/full_list.php
Log:
Minor: SQL in uppercase or indent changes.
Modified: trunk/gforge_base/evolvisforge-5.1/src/common/include/Group.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/include/Group.class.php 2011-03-01 00:49:17 UTC (rev 16934)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/include/Group.class.php 2011-03-01 00:49:20 UTC (rev 16935)
@@ -5,6 +5,7 @@
* Copyright 1999-2001, VA Linux Systems, Inc.
* Copyright 2009-2010, Roland Mas
* Copyright 2010, Franck Villaume - Capgemini
+ * Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
*
* This file is part of FusionForge.
*
@@ -54,7 +55,7 @@
function & group_get_licenses() {
global $LICENSE_NAMES;
if(empty($LICENSE_NAMES)) {
- $result = db_query_params ('select * from licenses', array());
+ $result = db_query_params ('SELECT * FROM licenses', array());
while($data = db_fetch_array($result)) {
$LICENSE_NAMES[$data['license_id']] = $data['license_name'];
}
Modified: trunk/gforge_base/evolvisforge-5.1/src/common/include/utils.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/include/utils.php 2011-03-01 00:49:17 UTC (rev 16934)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/include/utils.php 2011-03-01 00:49:20 UTC (rev 16935)
@@ -6,6 +6,7 @@
* Copyright 2009-2010, Roland Mas
* Copyright 2009-2010, Franck Villaume - Capgemini
* Copyright 2010, Thorsten Glaser <t.glaser at tarent.de>
+ * Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
*
* This file is part of FusionForge.
*
@@ -1116,7 +1117,7 @@
if ($absolute) {
return '<a ' . $ep . 'href="' . $path . '">' . $text . '</a>' ;
} else {
- return '<a ' . $ep . 'href="' . util_make_url ($path) . '">' . $text . '</a>' ;
+ return '<a ' . $ep . 'href="' . util_make_uri($path) . '">' . $text . '</a>' ;
}
}
Modified: trunk/gforge_base/evolvisforge-5.1/src/common/pm/ProjectTask.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/pm/ProjectTask.class.php 2011-03-01 00:49:17 UTC (rev 16934)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/pm/ProjectTask.class.php 2011-03-01 00:49:20 UTC (rev 16935)
@@ -5,6 +5,7 @@
* Copyright 1999-2000, Tim Perdue/Sourceforge
* Copyright 2002, Tim Perdue/GForge, LLC
* Copyright 2009, Roland Mas
+ * Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
*
* This file is part of FusionForge.
*
@@ -205,10 +206,10 @@
db_rollback();
return false;
}
- $this->sendNotice(1);
+ $this->sendNotice(1);
db_commit();
return true;
- }
+ }
/**
* fetchData - re-fetch the data for this ProjectTask from the database.
Modified: trunk/gforge_base/evolvisforge-5.1/src/www/softwaremap/full_list.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/softwaremap/full_list.php 2011-03-01 00:49:17 UTC (rev 16934)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/softwaremap/full_list.php 2011-03-01 00:49:20 UTC (rev 16935)
@@ -1,6 +1,7 @@
<?php
/*
* Copyright (C) 2008-2009 Alcatel-Lucent
+ * Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
*
* This file is part of FusionForge.
*
@@ -56,7 +57,7 @@
$res_grp = db_query_params ('
SELECT group_id, group_name, unix_group_name, short_description, register_time
FROM groups
- WHERE status = $1 AND is_public=1 AND type_id=1 AND group_id>4 AND register_time > 0
+ WHERE status = $1 AND is_public=1 AND type_id=1 AND group_id>4 AND register_time > 0
ORDER BY group_name ASC
',
array ('A'),
More information about the evolvis-commits
mailing list