•  » Engine
  •  » Bug on load_language function

#1 2015-02-21 10:24:53

LucMorizur
Member
Vienne (Isère) - France
2009-04-30
171

Bug on load_language function

Hi;

I've just opened [Bugtracker] ticket 3206. I don't understand why it was not reported before.

It is located in load_language function definition, at line 1515 of include/functions.inc.php:

writing

Code:

  $default_language = defined('PHPWG_INSTALLED') and !defined('UPGRADES_PATH') ?
      get_default_language() : PHPWG_DEFAULT_LANGUAGE;

makes $default_language be evaluated as a boolean. Writing

$default_language = (defined('PHPWG_INSTALLED') and !defined('UPGRADES_PATH')) ?
      get_default_language() : PHPWG_DEFAULT_LANGUAGE;

makes the evaluation correct.

Sorry not to have made this report before 2.7.4 release :-/ .

Last edited by LucMorizur (2015-02-21 10:26:07)


Our gallery : Le Site à Nous (a silly name in french, but here I don't care ;-) ! )
An event, a new gallery ? Plugin Event Cats
My test gallery : Tests Piwigo de Luc
Thanksalot for this beautiful project.

Offline

 
  •  » Engine
  •  » Bug on load_language function

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact