fixed wrong foldername

This commit is contained in:
o.pinke 2020-08-10 20:18:24 +02:00
parent dc11334aaf
commit 7a6db964fd
3 changed files with 8 additions and 7 deletions

View file

@ -32,8 +32,8 @@ if(!defined('CON_FRAMEWORK')) {
die('Illegal call');
}
$plugin_name = "linkchecker";
$cfg['plugins']['linkchecker'] = $cfg['path']['conlite'] . "plugins/" . 'cl-'.$plugin_name . "/";
$plugin_name = "cl-linkchecker";
$cfg['plugins']['linkchecker'] = $cfg['path']['conlite'] . "plugins/".$plugin_name . "/";
$cfg['tab']['whitelist'] = $cfg['sql']['sqlprefix'] . '_pi_linkchecker_whitelist';
// Templates

View file

@ -38,7 +38,7 @@ if (!defined('CON_FRAMEWORK')) {
die('Illegal call');
}
$plugin_name = "linkchecker";
$plugin_name = "cl-linkchecker";
global $cfg;
if (!$perm->have_perm_area_action($plugin_name, $plugin_name) && $cronjob != true) {
@ -61,9 +61,9 @@ if (empty($_GET['action'])) {
$action = "linkchecker";
}
plugin_include('linkchecker', 'includes/config.plugin.php');
plugin_include('linkchecker', 'includes/include.checkperms.php');
plugin_include('linkchecker', 'includes/include.linkchecker_tests.php');
plugin_include($plugin_name, 'includes/config.plugin.php');
plugin_include($plugin_name, 'includes/include.checkperms.php');
plugin_include($plugin_name, 'includes/include.linkchecker_tests.php');
cInclude('pear', 'PEAR.php');
cInclude('pear', 'Cache/Lite.php');

View file

@ -1,5 +1,6 @@
CREATE TABLE IF NOT EXISTS `!PREFIX!_linkchecker_whitelist` (
`idlinkchecker_whitelist` int(10) NOT NULL DEFAULT 0,
`url` varchar(255) NOT NULL DEFAULT '0',
`lastview` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`url`)
PRIMARY KEY (`idlinkchecker_whitelist`)
);