]> git.mjollnir.org Git - s9y.git/commitdiff
Make spartacus also purge plugin list
authorgarvinhicking <garvinhicking>
Thu, 4 Aug 2005 12:05:32 +0000 (12:05 +0000)
committergarvinhicking <garvinhicking>
Thu, 4 Aug 2005 12:05:32 +0000 (12:05 +0000)
plugins/serendipity_event_spartacus/serendipity_event_spartacus.php

index 1314a0cdedf8eb9da25fc522aed02b77e7eb6bd0..51a36985ed858549dcef011f1ab3c91889b2bedc 100644 (file)
@@ -66,6 +66,8 @@ class serendipity_event_spartacus extends serendipity_event
     }
 
     function cleanup() {
+        global $serendipity;
+
         // Purge cached XML files.
         $files = serendipity_traversePath($serendipity['serendipityPath'] . PATH_SMARTY_COMPILE, '', false, '/package_.+\.xml$/');
     
@@ -77,6 +79,9 @@ class serendipity_event_spartacus extends serendipity_event
             printf(DELETING_FILE . '<br />', $file['name']);
             @unlink($serendipity['serendipityPath'] . PATH_SMARTY_COMPILE . '/' . $file['name']);
         }
+        
+        serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}pluginlist");
+        serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}plugincategories");
     }
 
     function &getMirrors($type = 'xml', $loc = false) {