From 272703b41a32b5c5292048a05e2a45101ff1967e Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Thu, 8 Dec 2016 13:25:50 +0000 Subject: [PATCH] Revert Requirements throwing exceptions from #5260 --- view/Requirements.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/view/Requirements.php b/view/Requirements.php index 08c5eef5d..b2e1eaa80 100644 --- a/view/Requirements.php +++ b/view/Requirements.php @@ -1359,8 +1359,6 @@ class Requirements_Backend { $this->css($theme . $css, $media); } elseif($module) { $this->css($module . $css, $media); - } else { - throw new InvalidArgumentException("The css file doesn't exists. Please check if the file $name.css exists in any context or search for themedCSS references calling this file in your templates."); } } @@ -1393,8 +1391,6 @@ class Requirements_Backend { $this->javascript($theme . $js); } elseif($module) { $this->javascript($module . $js); - } else { - throw new InvalidArgumentException("The javascript file doesn't exists. Please check if the file $name.js exists in any context or search for themedJavascript references calling this file in your templates."); } }