summaryrefslogtreecommitdiff
path: root/modules/g2_import/controllers/admin_g2_import.php
diff options
context:
space:
mode:
authorChad Parry <github@chad.parry.org>2011-04-27 20:35:58 -0600
committerChad Parry <github@chad.parry.org>2011-04-27 20:35:58 -0600
commit6d564f185e5279d6cca9a7385066514ff18a2455 (patch)
tree40d7ebab63894412b57aeb4a7ce660b0c255ac00 /modules/g2_import/controllers/admin_g2_import.php
parent7ff485fa48c392bbbb0370f67cb1bd6fcc00c2a4 (diff)
parent406064087662184ec7f85297b9cdf83a77976616 (diff)
Merge branch 'master' of https://github.com/gallery/gallery3 into rawphoto
Diffstat (limited to 'modules/g2_import/controllers/admin_g2_import.php')
-rw-r--r--modules/g2_import/controllers/admin_g2_import.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/g2_import/controllers/admin_g2_import.php b/modules/g2_import/controllers/admin_g2_import.php
index cf68d911..5c4995c9 100644
--- a/modules/g2_import/controllers/admin_g2_import.php
+++ b/modules/g2_import/controllers/admin_g2_import.php
@@ -100,6 +100,11 @@ class Admin_g2_import_Controller extends Admin_Controller {
foreach (glob("{$path_prefix}*") as $file) {
if (is_dir($file) && !is_link($file)) {
$directories[] = $file;
+
+ // If we find an embed.php, include it as well
+ if (file_exists("$file/embed.php")) {
+ $directories[] = "$file/embed.php";
+ }
}
}