Skip to content

Commit 0b1f72b

Browse files
committed
remove comment
1 parent bdaef85 commit 0b1f72b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

phpmyfaq/src/phpMyFAQ/Plugin/PluginManager.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,7 @@ public function loadPlugins(): void
142142
}
143143
}
144144
} else {
145-
// Determine if we should treat new plugins as active or inactive.
146-
// For safety, inactivity is better, but existing users expect plugins to work if folder exists.
147-
// However, user requested "Activation/Deactivation".
148-
// If I default to false, all current plugins will stop working until activated.
149-
// I should probably insert them as active=0 initially, or maybe active=1 if migrating?
150-
// The implementation plan said: "Benutzer muss entscheiden, ob vorhandene Plugins standardmäßig als 'inaktiv'..."
151-
// User said "ok sounds good".
145+
152146
// I will default to inactive (false) for new plugins found on disk but not in DB.
153147
$isActive = false;
154148
}
@@ -307,8 +301,6 @@ private function getPluginsFromDatabase(): array
307301
$table = \phpMyFAQ\Database::getTablePrefix() . 'faqdata_plugins';
308302

309303
// Ensure table exists to avoid crashes during update/install if not yet run
310-
// But we expect it to exist if we are running.
311-
// We can catch exception or just query.
312304
try {
313305
$result = $db->query("SELECT name, active, config FROM $table");
314306
} catch (\Exception $e) {

0 commit comments

Comments
 (0)