|
| |
1 |
1 |
<?php |
|
| |
2 |
2 |
|
|
| |
3 |
|
|
|
| |
|
3 |
|
|
| |
4 |
4 |
|
|
| |
5 |
5 |
|
|
| |
6 |
6 |
|
|
|
| |
32 |
32 |
} |
|
| |
33 |
33 |
else { |
|
| |
34 |
34 |
|
|
| |
|
35 |
|
|
| |
35 |
36 |
$toolkit =& $this->toolkit; |
|
| |
36 |
|
|
|
| |
37 |
37 |
} |
|
| |
38 |
38 |
|
|
| |
39 |
39 |
$application =& kApplication::Instance(); |
|
|
| |
47 |
47 |
|
|
| |
48 |
48 |
$toolkit->RunSQL('/' . $module_folder . '/install/install_schema.sql'); |
|
| |
49 |
49 |
$toolkit->RunSQL('/' . $module_folder . '/install/install_data.sql', '{TopicCatId}', $category->GetID()); |
|
| |
50 |
|
$toolkit->ImportLanguage('/' . $module_folder . '/install/english'); |
|
| |
|
50 |
$toolkit->ImportLanguage('/' . $module_folder . '/install/english', isset($constants_file)); |
|
| |
51 |
51 |
|
|
| |
52 |
52 |
$toolkit->SetModuleRootCategory(basename($module_folder), $category->GetID()); |
|
| |
53 |
53 |
|