2010-09-30 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: in function "checklogin" fixed the include of file "user.class.php". In function "__" fixed when try translate a empty string. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3329 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
4baf2f829a
commit
784fc724b0
|
@ -1,4 +1,10 @@
|
|||
2010-09-29 Miguel de Dios <miguel.dedios@artica.es>
|
||||
2010-09-30 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_db.php: in function "checklogin" fixed the include of
|
||||
file "user.class.php". In function "__" fixed when try translate a empty
|
||||
string.
|
||||
|
||||
2010-09-30 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_db.php: erased deprecate function "comprueba_login".
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ function check_login () {
|
|||
}
|
||||
}
|
||||
else {
|
||||
require_once('../mobile/include/user.class.php');
|
||||
require_once($config["homedir"].'/mobile/include/user.class.php');
|
||||
session_start ();
|
||||
session_write_close ();
|
||||
$user = $_SESSION['user'];
|
||||
|
@ -2955,6 +2955,10 @@ echo __('Hello, %s!', $user);
|
|||
function __ ($string /*, variable arguments */) {
|
||||
global $l10n;
|
||||
|
||||
if ($string == '') {
|
||||
return $string;
|
||||
}
|
||||
|
||||
if (func_num_args () == 1) {
|
||||
if (is_null ($l10n))
|
||||
return $string;
|
||||
|
|
Loading…
Reference in New Issue