| @@ 106-120 (lines=15) @@ | ||
| 103 | * @param null $prev_version |
|
| 104 | * @return bool |
|
| 105 | */ |
|
| 106 | function xoops_module_update_tag(XoopsModule $module, $prev_version = null) |
|
| 107 | { |
|
| 108 | //load_functions("config"); |
|
| 109 | //mod_clearConfg($module->getVar("dirname", "n")); |
|
| 110 | ||
| 111 | if ($prev_version <= 150) { |
|
| 112 | $GLOBALS['xoopsDB']->queryFromFile($GLOBALS['xoops']->path('/modules/' . $module->getVar('dirname') . '/sql/mysql.150.sql')); |
|
| 113 | } |
|
| 114 | ||
| 115 | /* Do some synchronization */ |
|
| 116 | include_once $GLOBALS['xoops']->path('/modules/' . $module->getVar('dirname') . '/include/functions.recon.php'); |
|
| 117 | tag_synchronization(); |
|
| 118 | ||
| 119 | return true; |
|
| 120 | } |
|
| 121 | ||
| @@ 77-91 (lines=15) @@ | ||
| 74 | * @return bool true if update successful, false if not |
|
| 75 | */ |
|
| 76 | ||
| 77 | function xoops_module_update_tag(XoopsModule $module, $prev_version = null) |
|
| 78 | { |
|
| 79 | //load_functions("config"); |
|
| 80 | //mod_clearConfg($module->getVar("dirname", "n")); |
|
| 81 | ||
| 82 | if ($prev_version <= 150) { |
|
| 83 | $GLOBALS['xoopsDB']->queryFromFile($GLOBALS['xoops']->path('/modules/' . $module->getVar('dirname') . '/sql/mysql.150.sql')); |
|
| 84 | } |
|
| 85 | ||
| 86 | /* Do some synchronization */ |
|
| 87 | include_once $GLOBALS['xoops']->path('/modules/' . $module->getVar('dirname') . '/include/functions.recon.php'); |
|
| 88 | tag_synchronization(); |
|
| 89 | ||
| 90 | return true; |
|
| 91 | } |
|
| 92 | ||