Project

General

Profile

« Previous | Next » 

Revision 939

Added by doc almost 16 years ago

fixed bug if language folder contains none language files (XX.php) or sub folders

View differences:

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