@@ 108-115 (lines=8) @@ | ||
105 | } |
|
106 | ||
107 | // --- COPY test folder files --------------- |
|
108 | if (count($configurator->copyTestFolders) > 0) { |
|
109 | // $file = __DIR__ . '/../testdata/images/'; |
|
110 | foreach (array_keys($configurator->copyTestFolders) as $i) { |
|
111 | $src = $configurator->copyTestFolders[$i][0]; |
|
112 | $dest = $configurator->copyTestFolders[$i][1]; |
|
113 | $utility::xcopy($src, $dest); |
|
114 | } |
|
115 | } |
|
116 | ||
117 | //delete .html entries from the tpl table |
|
118 | $sql = 'DELETE FROM ' . $GLOBALS['xoopsDB']->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'"; |
@@ 61-68 (lines=8) @@ | ||
58 | \Xmf\Database\TableLoad::loadTableFromArray($moduleDirName . '_category', $categoryData); |
|
59 | ||
60 | // --- COPY test folder files --------------- |
|
61 | if (count($configurator->copyTestFolders) > 0) { |
|
62 | // $file = __DIR__ . '/../testdata/images/'; |
|
63 | foreach (array_keys($configurator->copyTestFolders) as $i) { |
|
64 | $src = $configurator->copyTestFolders[$i][0]; |
|
65 | $dest = $configurator->copyTestFolders[$i][1]; |
|
66 | $utility::xcopy($src, $dest); |
|
67 | } |
|
68 | } |
|
69 | redirect_header('../admin/index.php', 1, AM_RANDOMQUOTE_SAMPLEDATA_SUCCESS); |
|
70 | } |
|
71 |