X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FTemplate%2FLoader%2FThemeRegistryLoader.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FTemplate%2FLoader%2FThemeRegistryLoader.php;h=862092b6062a0d085b99ea19d4ecc6fd71139acf;hp=67a82dd8f51ab228155905ebe38c710dabb8a928;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/lib/Drupal/Core/Template/Loader/ThemeRegistryLoader.php b/web/core/lib/Drupal/Core/Template/Loader/ThemeRegistryLoader.php index 67a82dd8f..862092b60 100644 --- a/web/core/lib/Drupal/Core/Template/Loader/ThemeRegistryLoader.php +++ b/web/core/lib/Drupal/Core/Template/Loader/ThemeRegistryLoader.php @@ -36,8 +36,8 @@ class ThemeRegistryLoader extends \Twig_Loader_Filesystem { * @param bool $throw * Whether to throw an exception when an error occurs. * - * @return string - * The path to the template. + * @return string|false + * The path to the template, or false if the template is not found. * * @throws \Twig_Error_Loader * Thrown if a template matching $name cannot be found. @@ -63,6 +63,8 @@ class ThemeRegistryLoader extends \Twig_Loader_Filesystem { if ($throw) { throw new \Twig_Error_Loader(sprintf('Unable to find template "%s" in the Drupal theme registry.', $name)); } + + return FALSE; } }