diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-06-12 12:00:09 -0700 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-12 12:00:09 -0700 | 
| commit | 6749a835e71826d4f8cffb0d859edc0e2b4e6b96 (patch) | |
| tree | b27d89a850b02b0f8d4dec7e30d52b80912adf1c /modules/g2_import | |
| parent | 67c81087131e7ef3e4d50ac549bc58dcc98d8cef (diff) | |
Work around different initialization code in earlier versions of Gallery 2.
Diffstat (limited to 'modules/g2_import')
| -rw-r--r-- | modules/g2_import/helpers/g2_import.php | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 441c922a..4a4c8247 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -100,11 +100,13 @@ class g2_import_Core {            array("require_once(dirname(__FILE__) . '/modules/core/classes/Gallery.class');",                  "require_once(dirname(__FILE__) . '/modules/core/classes/GalleryDataCache.class');",                  "define('GALLERY_CONFIG_DIR', dirname(__FILE__));", -                "\$gallery =& new Gallery();"), +                "\$gallery =& new Gallery();", +                "\$gallery = new Gallery();"),            array("require_once(dirname(__FILE__) . '/Gallery.class');",                  "require_once('$base_dir/modules/core/classes/GalleryDataCache.class');",                  "define('GALLERY_CONFIG_DIR', '$base_dir');", -                "\$gallery =& new G2_Gallery();"), +                "\$gallery =& new G2_Gallery();", +                "\$gallery = new G2_Gallery();"),            array_merge(array("<?php defined(\"SYSPATH\") or die(\"No direct script access.\") ?>\n"),                        file("$base_dir/bootstrap.inc")))); | 
