I wrote a modul that just includes another script. This worked fine until version 1.4. With version 1.4 it seems like CMS Made simple does not evaluate the content of the included script anymore:
TestModule.module.php:
Code: Select all
<?php
class TestModule extends CMSModule
{
function GetName()
{
return 'TestModule';
}
function GetFriendlyName()
{
return 'testModule';
}
function GetVersion()
{
return '1.0';
}
function IsPluginModule()
{
return true;
}
function Install()
{
//
}
function InstallPostMessage()
{
return "Installed TestModule Module successfully";
}
function Uninstall()
{
//
}
function UninstallPostMessage()
{
return "TestModule Module successfully uninstalled";
}
function DoAction($action, $id, $params, $returnid=-1)
{
error_reporting(E_ALL);
require_once('include_me.php');
test();
return;
}
}
?>
Code: Select all
<?php
echo "1";
function test()
{
echo "2";
}
?>
The output in Version 1.3 is: 12
Perhaps someone can help me?
Kind regards
Jens