@@ 1246-1250 (lines=5) @@ | ||
1243 | $category = mysqli_real_escape_string($conn, $modulePlugin[6]); |
|
1244 | $leg_names = ''; |
|
1245 | $disabled = $modulePlugin[9]; |
|
1246 | if (array_key_exists(7, $modulePlugin)) { |
|
1247 | // parse comma-separated legacy names and prepare them for sql IN clause |
|
1248 | $leg_names = "'" . implode("','", |
|
1249 | preg_split('/\s*,\s*/', mysqli_real_escape_string($conn, $modulePlugin[7]))) . "'"; |
|
1250 | } |
|
1251 | if (!file_exists($filecontent)) { |
|
1252 | echo " $name: " . $_lang['unable_install_plugin'] . " '$filecontent' " . $_lang['not_found'] . PHP_EOL; |
|
1253 | } else { |
@@ 648-654 (lines=7) @@ | ||
645 | $category = mysqli_real_escape_string($conn, $modulePlugin[6]); |
|
646 | $leg_names = ''; |
|
647 | $disabled = $modulePlugin[9]; |
|
648 | if (array_key_exists(7, $modulePlugin)) { |
|
649 | // parse comma-separated legacy names and prepare them for sql IN clause |
|
650 | $leg_names = "'" . implode( |
|
651 | "','", |
|
652 | preg_split('/\s*,\s*/', mysqli_real_escape_string($conn, $modulePlugin[7])) |
|
653 | ) . "'"; |
|
654 | } |
|
655 | if (! file_exists($filecontent)) { |
|
656 | $installDataLevel['plugins'][$modulePlugin[0]]['error'] = array( |
|
657 | 'type' => 'file_not_found' |