- if (file_exists($file1) && is_readable($file1)) {
- // If there's no language file specified we don't need to load one... ;-)
- if (!empty($lang)) {
- // Create language file
- $file2 = sprintf("%sinc/language/%s_%s.php", PATH, $lang, GET_LANGUAGE());
- }
-
- if (file_exists($file3) && is_readable($file3)) {
- // Special functions file
- $funcs = "Y";
- require_once($file3);
- } else {
- // Don't load functions file
- $funcs = "N";
- }
-
- // Do we need a language file?
- if (($file1 != $file2) && (file_exists($file2)) && (is_readable($file2))) {
- // Load language file
- $lang = "Y";
- include($file2);
- } else {
- // Don't load language file
- $lang = "N";
- }
+ if (FILE_READABLE($file1)) {
+ // By default no extension is always active, except sql_patches
+ $EXT_ALWAYS_ACTIVE = "N";