Piwigo Bugtracker

Piwigo bug tracker has moved to Github

This bugtracker is kept to provide history on old issues.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003206Piwigolanguagepublic2015.02.21 10:122015.02.21 10:12
Assigned To 
PlatformAnyOSAnyOS Version2.7
Product Version2.7.3 
Target VersionFixed in Version 
Summary0003206: Other language file than plugin.lang isn't loaded
DescriptionAt lines 1515 and 1516 of include/functions.inc.php , inside load_language function, is defined $default_language :

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

Because of lack of parenthesis, $default_language is evaluated as a boolean, and following code thus fails.
Steps To ReproduceUse load_language requiring other files than plugin.lang , like plugins LCAS and Event Cats do.
Additional InformationWriting

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

TagsNo tags attached.
Database engine and version
PHP version
Web serverApache 1.3.x
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2015.02.21 10:12 LucMorizur New Issue
2015.02.21 10:12 LucMorizur browser => any
2015.02.21 10:12 LucMorizur Web server => Apache 1.3.x

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker