Revision 939
Added by doc almost 16 years ago
trunk/CHANGELOG | ||
---|---|---|
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.0 ------------------------------------- |
14 | 14 |
19-Feb-2009 Christian Sommer |
15 |
# fixed bug if language folder contains none language files (XX.php) or sub folders |
|
15 | 16 |
+ added option to invoke module upgrade.php/uninstall.php files from backend (for modules uploaded via FTP) |
16 | 17 |
18-Feb-2009 Dietrich Roland Pehlke (aldus) |
17 | 18 |
# fixed: typos in the section_id inside the action-link |
trunk/wb/framework/functions.php | ||
---|---|---|
758 | 758 |
// Load language into DB |
759 | 759 |
function load_language($file) { |
760 | 760 |
global $database; |
761 |
if(file_exists($file)) {
|
|
761 |
if (file_exists($file) && preg_match('#^([A-Z]{2}.php)#', basename($file))) {
|
|
762 | 762 |
require($file); |
763 | 763 |
if(isset($language_name)) { |
764 | 764 |
if(!isset($language_license)) { $language_license = 'GNU General Public License'; } |
Also available in: Unified diff
fixed bug if language folder contains none language files (XX.php) or sub folders