diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-06-23 18:39:00 -0700 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-23 18:39:00 -0700 | 
| commit | 53284ec5b892915c5905ea4f1e3fe76b18d3b576 (patch) | |
| tree | b13a69ae512503c062c86e3126977c15950165ff /modules | |
| parent | 9a0448e5d6f83d93f906e6fe1aec4bbb8d78912f (diff) | |
Add support for Gallery 2.2.2 style bootstrap syntax.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/g2_import/helpers/g2_import.php | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 2eee564a..91ca1e63 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -113,11 +113,13 @@ class g2_import_Core {                  "require_once(dirname(__FILE__) . '/modules/core/classes/GalleryDataCache.class');",                  "define('GALLERY_CONFIG_DIR', dirname(__FILE__));",                  "\$gallery =& new Gallery();", +                "\$GLOBALS['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', '$config_dir');",                  "\$gallery =& new G2_Gallery();", +                "\$GLOBALS['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")))); | 
