Commit 78cba776 authored by David_Rothstein's avatar David_Rothstein

Issue #2762393 by stefan.r, MustangGB, David_Rothstein: Skip error triggering...

Issue #2762393 by stefan.r, MustangGB, David_Rothstein: Skip error triggering for missing files if the files are empty or "default"
parent ab6e1a0a
......@@ -1071,6 +1071,12 @@ function _drupal_get_filename_perform_file_scan($type, $name) {
* @see _drupal_get_filename_fallback()
*/
function _drupal_get_filename_fallback_trigger_error($type, $name, $error_type) {
// Hide messages due to known bugs that will appear on a lot of sites.
// @todo Remove this in https://www.drupal.org/node/2762241
if (empty($name) || ($type == 'module' && $name == 'default')) {
return;
}
// Make sure we only show any missing or moved file errors only once per
// request.
static $errors_triggered = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment