[Fusionforge-commits] r9057 - trunk/gforge/common/include

Roland Mas lolando at libremir.placard.fr.eu.org
Mon Mar 15 14:02:09 CET 2010


Author: lolando
Date: 2010-03-15 14:02:08 +0100 (Mon, 15 Mar 2010)
New Revision: 9057

Modified:
   trunk/gforge/common/include/Navigation.class.php
   trunk/gforge/common/include/config.php
Log:
Renamed get_config() to fusionforge_get_config()

Modified: trunk/gforge/common/include/Navigation.class.php
===================================================================
--- trunk/gforge/common/include/Navigation.class.php	2010-03-15 13:01:55 UTC (rev 9056)
+++ trunk/gforge/common/include/Navigation.class.php	2010-03-15 13:02:08 UTC (rev 9057)
@@ -55,9 +55,9 @@
                 if (!$asHTML) {
                         // get the title
                         if (!$params['title']) {
-                                return get_config ('core', 'forge_name') ;
+                                return fusionforge_get_config ('core', 'forge_name') ;
                         } else {
-                                return get_config ('core', 'forge_name') . ': ' . $params['title'];
+                                return fusionforge_get_config ('core', 'forge_name') . ': ' . $params['title'];
                         }
                 } else {
                         // return HTML code otherwise
@@ -201,7 +201,7 @@
                         $res['titles'][] = _('Log In');
                         $res['urls'][] = util_make_url($url);
                         
-                        if (!get_config ('core', 'user_registration_restricted')) {
+                        if (!fusionforge_get_config ('core', 'user_registration_restricted')) {
                                 $res['titles'][] = _('New Account');
                                 $res['urls'][] = util_make_url('/account/register.php');
                         }

Modified: trunk/gforge/common/include/config.php
===================================================================
--- trunk/gforge/common/include/config.php	2010-03-15 13:01:55 UTC (rev 9056)
+++ trunk/gforge/common/include/config.php	2010-03-15 13:02:08 UTC (rev 9057)
@@ -26,7 +26,7 @@
 	$fusionforge_config = array () ;
 }
 
-function get_config ($section, $var) {
+function fusionforge_get_config ($section, $var) {
 	if (!isset ($fusionforge_config[$section])
 	    || !isset ($fusionforge_config[$section][$var])) {
 		return false ;




More information about the Fusionforge-commits mailing list