Index: branches/2.8.x/wb/framework/functions.php
===================================================================
--- branches/2.8.x/wb/framework/functions.php	(revision 1155)
+++ branches/2.8.x/wb/framework/functions.php	(revision 1156)
@@ -776,9 +776,9 @@
 // Load module into DB
 function load_module($directory, $install = false) {
 	global $database,$admin,$MESSAGE;
-	if(is_dir($directory) AND file_exists($directory.'/info.php'))
-	{
-		require($directory.'/info.php');
+	if(is_dir($directory) AND file_exists($directory.'/info.php'))
+	{
+		require($directory.'/info.php');
 		if(isset($module_name))
 	{
 			if(!isset($module_license)) { $module_license = 'GNU General Public License'; }
@@ -810,7 +810,7 @@
 // Load template into DB
 function load_template($directory) {
 	global $database;
-	if(file_exists($directory.'/info.php')) {
+	if(is_dir($directory) AND file_exists($directory.'/info.php')) {
 		require($directory.'/info.php');
 		if(isset($template_name)) {
 			if(!isset($template_license)) { $template_license = 'GNU General Public License'; }
