summaryrefslogtreecommitdiff
path: root/modules/g2_import/helpers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-07-27 21:35:14 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-07-27 21:35:14 -0700
commitc3a92df6e6ee88c9fd57c3da8a6703d994cb55b2 (patch)
tree47c7fbefb7d979bd47ca660cb3f5becbf4f5c75d /modules/g2_import/helpers
parentc2100d1d2d7d4a5570ed454f5de078d6595de768 (diff)
parentdd955781aaa9c1ee9e780b6b2c545878a47bbf21 (diff)
Merge branch 'master' into dialog
Diffstat (limited to 'modules/g2_import/helpers')
-rw-r--r--modules/g2_import/helpers/g2_import.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php
index c0ea09d6..4aa9e642 100644
--- a/modules/g2_import/helpers/g2_import.php
+++ b/modules/g2_import/helpers/g2_import.php
@@ -139,6 +139,15 @@ class g2_import_Core {
"function G2_Gallery"),
array_merge(array("<?php defined(\"SYSPATH\") or die(\"No direct script access.\") ?>\n"),
file("$base_dir/modules/core/classes/Gallery.class"))));
+ } else {
+ // Ok, this is a good one. If you're running a bytecode accelerator and you move your
+ // Gallery install, these files sometimes get cached with the wrong path and then fail to
+ // load properly.
+ // Documented in https://sourceforge.net/apps/trac/gallery/ticket/1253
+ touch("$mod_path/embed.php");
+ touch("$mod_path/main.php");
+ touch("$mod_path/bootstrap.inc");
+ touch("$mod_path/Gallery.class.inc");
}
require("$mod_path/embed.php");