// phpBB version: 3.0.4 // File: includes/session.php // // PATCH to show errors on inclusion of language files on DEBUG_EXTRA mode // There's probably a more efficient way to do this, but I can't think of it at the moment.. // // @author: Desdenova // @NOTE: Approximately Line 1530.. // FIND if ((@include $this->lang_path . $this->lang_name . "/common.$phpEx") === false) { die('Language file ' . $this->lang_path . $this->lang_name . "/common.$phpEx" . " couldn't be opened."); } // END FIND // --- // REPLACE-WITH if (!defined('DEBUG_EXTRA')) { if ((@include $this->lang_path . $this->lang_name . "/common.$phpEx") === false) { die('Language file ' . $this->lang_path . $this->lang_name . "/common.$phpEx" . " couldn't be opened."); } } else { if ((include $this->lang_path . $this->lang_name . "/common.$phpEx") === false) { die('Language file ' . $this->lang_path . $this->lang_name . "/common.$phpEx" . " couldn't be opened."); } } // END REPLACE-WITH // @NOTE: Approximately Line 2003.. // FIND if ((@include $language_filename) === false) { trigger_error('Language file ' . $language_filename . ' couldn\'t be opened.', E_USER_ERROR); } // END FIND // --- // REPLACE-WITH if (!defined('DEBUG_EXTRA')) { if ((@include $language_filename) === false) { trigger_error('Language file ' . $language_filename . ' couldn\'t be opened.', E_USER_ERROR); } } else { if ((include $language_filename) === false) { trigger_error('Language file ' . $language_filename . ' couldn\'t be opened.', E_USER_ERROR); } }