Revert 01e33ae591 until clean up duplicate functions in nntp scripts with lib scripts

This commit is contained in:
Retro_Guy 2022-08-02 07:44:08 +01:00
parent a75ab5f8b1
commit c2b2369b23
2 changed files with 2 additions and 4 deletions

View File

@ -92,8 +92,7 @@ function delete_message($messageid, $group) {
$section="";
while($gl=fgets($glfp)) {
$group_name = preg_split("/( |\t)/", $gl, 2);
if(strtolower(trim($group)) == strtolower(trim($group_name[0]))) {
// if(stripos(trim($group_name[0]), $group) !== false) {
if(strtolower(trim($group)) == strtolower(trim($group_name[0]))) {
$config_name=$menuitem[0];
file_put_contents($logfile, "\n".format_log_date()." ".$config_name." FOUND: ".$messageid." IN: ".$config_name.'/'.$group, FILE_APPEND);
break 2;
@ -106,7 +105,7 @@ function delete_message($messageid, $group) {
$query = $dbh->prepare('DELETE FROM overview WHERE msgid=:messageid');
$query->execute(['messageid' => $messageid]);
$dbh = null;
thread_cache_removearticle($group,$messageid);
// thread_cache_removearticle($group,$messageid);
}
if($CONFIG['article_database'] == '1') {
$database = $spooldir.'/'.$group.'-articles.db3';

View File

@ -1 +0,0 @@
../rocksolid/lib