summaryrefslogtreecommitdiff
path: root/modules/g2_import/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-19 08:48:23 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-19 08:48:23 -0800
commit51f2b547672ab69a7a04d37b723c6afbeb584a59 (patch)
tree5b38f78eaf9dd974deaeb4307a29239a472b2585 /modules/g2_import/controllers
parent8ce1d188068214103515decd71532bf69a36320c (diff)
Make sure that calls to the theme::get_var() have sane defaults in the event that the theme does not supply them.
Diffstat (limited to 'modules/g2_import/controllers')
-rw-r--r--modules/g2_import/controllers/admin_g2_import.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/g2_import/controllers/admin_g2_import.php b/modules/g2_import/controllers/admin_g2_import.php
index 6ed92c37..99d28fd7 100644
--- a/modules/g2_import/controllers/admin_g2_import.php
+++ b/modules/g2_import/controllers/admin_g2_import.php
@@ -35,8 +35,8 @@ class Admin_g2_import_Controller extends Admin_Controller {
if (g2_import::is_initialized()) {
$view->content->g2_stats = $g2_stats;
$view->content->g2_sizes = $g2_sizes;
- $view->content->thumb_size = theme::get_var("thumb_size");
- $view->content->resize_size = theme::get_var("resize_size");
+ $view->content->thumb_size = theme::get_var("thumb_size", 200);
+ $view->content->resize_size = theme::get_var("resize_size", 640);
}
print $view;
}