diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-04-24 22:55:01 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-04-24 22:55:08 -0700 |
commit | 8533420f5d307e81a90c3d26a75b666350aee0f2 (patch) | |
tree | 06eadd0088af493095e6b95d760de954187e280c | |
parent | 729b62abec87a96767ef19c38e77919714c04541 (diff) |
Look for and return embed.php files in the autocomplete list if we can
find them. Fixes #1708.
-rw-r--r-- | modules/g2_import/controllers/admin_g2_import.php | 5 |
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"; + } } } |