Index: sites/all/modules/contrib/imagecrop/includes/imagecrop.theme.inc
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
<+><?php\n/**\n * @file\n * Theming functions for showing the imagecrop pages.\n *\n * @date\n * Oct 7, 2010\n */\n\n/**\n * Override the page theming for the imagecrop pages.\n */\nfunction imagecrop_page($variables) {\n\n  $output = '';\n  if (isset($variables['messages'])) {\n    $output .= $variables['messages'];\n  }\n\n  if (!module_exists('block')) {\n    $region = 'content';\n  }\n  else {\n    global $theme;\n    $query = db_select('block');\n    $query->addField('block', 'region');\n    $query->condition('theme', $theme);\n    $query->condition('module', 'system');\n    $query->condition('delta', 'main');\n    $region = $query->execute()->fetchField();\n  }\n\n  // Render only the main content.\n  if (isset($variables['page'][$region])) {\n    $output .= imagecrop_render_main_content($variables['page'][$region]);\n  }\n  // Old version from Omega theme uses zones\n  elseif (isset($variables['page']['content_zone']['#regions']['content'])) {\n    $variables['page']['content_zone']['#regions']['content']['#omega']['page_data']['title'] = FALSE;\n    $output .= drupal_render($variables['page']['content_zone']['#regions']['content']);\n  }\n  else {\n    $output = t('The main content block was not found.');\n  }\n\n  return $output;\n\n}\n\n/**\n * Theme the summary from given imagecrop effect.\n */\nfunction theme_imagecrop_effect_summary($variables) {\n\n  $data = $variables['data'];\n\n  $description = t('width') .': '. $data['width'] .', '. t('height') .': '. $data['height'];\n  if (!empty($data['xoffset'])) {\n    $description .= ', '. t('xoffset') .': '. $data['xoffset'];\n  }\n\n  if (!empty($data['yoffset'])) {\n    $description .= ', '. t('yoffset') .': '. $data['yoffset'];\n  }\n\n  if ($data['resizable']) {\n    $description .= ', '. t('resizable');\n  }\n\n  if ($data['aspect_ratio']) {\n    $description .= ', aspect ratio: '. $data['aspect_ratio'];\n  }\n\n  if ($data['disable_if_no_data']) {\n    $description .= ', '. t(\"don't crop if region is not set\");\n  }\n\n  if ($data['downscaling']) {\n    $description .= ', '. t('no downscaling allowed');\n  }\n\n  return $description;\n\n}\n\n/**\n * Theme the summary from an imagecrop re-use effect.\n */\nfunction theme_imagecrop_reuse($element) {\n\n  $data = $element['#value'];\n  $description = t('Crop settings from @preset', array('@preset' => $data['imagecrop_presetname']));\n\n  return $description;\n\n}
===================================================================
--- sites/all/modules/contrib/imagecrop/includes/imagecrop.theme.inc	(revision 095edce4af16cc849fe1f6a66473c8708bf1cc46)
+++ sites/all/modules/contrib/imagecrop/includes/imagecrop.theme.inc	(revision )
@@ -1,3 +1,4 @@
+
 <?php
 /**
  * @file
@@ -21,7 +22,7 @@
     $region = 'content';
   }
   else {
-    global $theme;
+    $theme = variable_get(variable_get('imagecrop_theme', 'admin_theme'));
     $query = db_select('block');
     $query->addField('block', 'region');
     $query->condition('theme', $theme);
@@ -93,4 +94,4 @@
 
   return $description;
 
-}
\ No newline at end of file
+}
