projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix networking display on profiles
[platal.git]
/
classes
/
platalglobals.php.in
diff --git
a/classes/platalglobals.php.in
b/classes/platalglobals.php.in
index
5d8493e
..
774a809
100644
(file)
--- a/
classes/platalglobals.php.in
+++ b/
classes/platalglobals.php.in
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-20
09
Polytechnique.org *
+ * Copyright (C) 2003-20
10
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-25,10
+25,11
@@
class PlatalGlobals extends PlGlobals
public $version = '@VERSION@';
/** db params */
public $version = '@VERSION@';
/** db params */
- public $dbdb = 'x4dat';
+ public $dbdb = null;
+ public $dbprefix = '';
public $dbhost = 'localhost';
public $dbhost = 'localhost';
- public $dbuser =
'x4dat'
;
- public $dbpwd =
'x4dat'
;
+ public $dbuser =
null
;
+ public $dbpwd =
null
;
public $dbcharset = 'utf8';
/** default skin */
public $dbcharset = 'utf8';
/** default skin */
@@
-51,15
+52,17
@@
class PlatalGlobals extends PlGlobals
public function asso($key = null)
{
public function asso($key = null)
{
+ static $fetched = false;
static $aid = null;
static $aid = null;
- if (isset($GLOBALS['IS_XNET_SITE']) &&
is_null($aid)
) {
+ if (isset($GLOBALS['IS_XNET_SITE']) &&
!$fetched
) {
$gp = Get::v('n');
if ($p = strpos($gp, '/')) {
$gp = substr($gp, 0, $p);
}
$aid = Group::get($gp);
$gp = Get::v('n');
if ($p = strpos($gp, '/')) {
$gp = substr($gp, 0, $p);
}
$aid = Group::get($gp);
+ $fetched = true;
}
if (empty($key)) {
return $aid;
}
if (empty($key)) {
return $aid;