PostNuke

Flexible Content Management System

News

Module inactivation problem

Contributed by on Feb 14, 2004 - 07:50 PM

index.php?op=modload&name=...
or
modules.php?op=modload&name=...
(the way main menu block does if you just insert [modulename] into the URL field of a menu item in Administration/Blocks/Main Menu). I suggest altering the code and including a pnModAvailable API function call to do this task.

Original code:
if (file_exists('modules/'...


New code should look like this:
if ((pnModAvailable($name)) && (file_exists('modules/'...


I found that this solves the problem.

Have fun with PostNuke!

Miklos Kovacs, Hungary
2548
Footnote: 1