--- theme_editor.inc	2012-05-23 12:00:35.134436201 +0530
+++ theme_editor/theme_editor.inc	2012-05-25 18:05:37.359857582 +0530
@@ -545,11 +545,14 @@
  * If no backup is available returns false
  **/
 function theme_editor_get_backup($file, $dir) {
-	if (!file_exists($dir.'/theme_editor_backup/'.$file.'.bak')) {
+        list($get_backup, $get_backup_file) = split("/",$file);
+	if ((!file_exists($dir.'/theme_editor_backup/'.$file.'.bak')) 
+           && (!file_exists($dir.'/'.$get_backup.'/theme_editor_backup/'.$get_backup_file.'.bak'))) {
 		return false;
 	}
 	else {
-		$contents = _file_get_contents($dir.'/theme_editor_backup/'.$file.'.bak', NULL);
+                $get_file_path = file_exists($dir.'/theme_editor_backup/'.$file.'.bak') ? $dir.'/theme_editor_backup/'.$file.'.bak': $dir.'/'.$get_backup.'/theme_editor_backup/'.$get_backup_file.'.bak';
+		$contents = _file_get_contents($get_file_path, NULL);
 		return $contents;
 	}
 }
