|
@@ 124-136 (lines=13) @@
|
| 121 |
|
if (false != $call_approvefunc && isset($comment_config['callback']['approve']) |
| 122 |
|
&& '' != trim($comment_config['callback']['approve'])) { |
| 123 |
|
$skip = false; |
| 124 |
|
if (!function_exists($comment_config['callback']['approve'])) { |
| 125 |
|
if (isset($comment_config['callbackFile'])) { |
| 126 |
|
$callbackfile = trim($comment_config['callbackFile']); |
| 127 |
|
if ('' != $callbackfile |
| 128 |
|
&& file_exists(XOOPS_ROOT_PATH . '/modules/' . $moddir . '/' . $callbackfile)) { |
| 129 |
|
require_once XOOPS_ROOT_PATH . '/modules/' . $moddir . '/' . $callbackfile; |
| 130 |
|
} |
| 131 |
|
if (!function_exists($comment_config['callback']['approve'])) { |
| 132 |
|
$skip = true; |
| 133 |
|
} |
| 134 |
|
} else { |
| 135 |
|
$skip = true; |
| 136 |
|
} |
| 137 |
|
} |
| 138 |
|
if (!$skip) { |
| 139 |
|
$comment_config['callback']['approve']($comment); |
|
@@ 147-159 (lines=13) @@
|
| 144 |
|
if (false != $call_updatefunc && isset($comment_config['callback']['update']) |
| 145 |
|
&& '' != trim($comment_config['callback']['update'])) { |
| 146 |
|
$skip = false; |
| 147 |
|
if (!function_exists($comment_config['callback']['update'])) { |
| 148 |
|
if (isset($comment_config['callbackFile'])) { |
| 149 |
|
$callbackfile = trim($comment_config['callbackFile']); |
| 150 |
|
if ('' != $callbackfile |
| 151 |
|
&& file_exists(XOOPS_ROOT_PATH . '/modules/' . $moddir . '/' . $callbackfile)) { |
| 152 |
|
require_once XOOPS_ROOT_PATH . '/modules/' . $moddir . '/' . $callbackfile; |
| 153 |
|
} |
| 154 |
|
if (!function_exists($comment_config['callback']['update'])) { |
| 155 |
|
$skip = true; |
| 156 |
|
} |
| 157 |
|
} else { |
| 158 |
|
$skip = true; |
| 159 |
|
} |
| 160 |
|
} |
| 161 |
|
if (!$skip) { |
| 162 |
|
$criteria = new \CriteriaCompo(new \Criteria('com_modid', $com_modid)); |