Code Duplication    Length = 13-13 lines in 2 locations

trackback.php 2 locations

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