--- /Users/gbirke/Desktop/drupal-4.5.2/modules/system.module	Tue Nov 30 19:40:48 2004
+++ modules/system.module	Mon Feb  7 16:45:43 2005
@@ -692,7 +692,17 @@
       }
       else {
         $form .= form_group(t('Engine-specific settings'), $group, t('These settings only exist for all the templates and styles based on the %engine theme engine.', array('%engine' => $themes[$key]->prefix)));
-      }
+		//Template specific settings for theming engines
+		$settingsfile = $themes[$key]->path['dirname'].'/settings.php';
+		if (file_exists($settingsfile)) {
+			include_once $settingsfile;
+			$function = $themes[$key]->shortname .'_settings';
+			if (function_exists($function)) {
+			  $group = $function();
+				$form .= form_group(t('Theme-specific settings'), $group, t('These settings only exist for the %theme theme and all the styles based on it.', array('%theme' => $themes[$key]->shortname)));
+			}
+		}
+	  }
     }
   }
   $form .= form_submit(t('Save configuration'));
