Better detection of corrupted module files.
This commit is contained in:
parent
c49af3da48
commit
286bdf91d4
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2005-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2005-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@ -259,6 +259,12 @@ class Interfaces
|
|||||||
$modName = $modules[$key];
|
$modName = $modules[$key];
|
||||||
if (empty($modName)) continue;
|
if (empty($modName)) continue;
|
||||||
|
|
||||||
|
if (! class_exists($modName))
|
||||||
|
{
|
||||||
|
print 'Error: A trigger file was found but its class "'.$modName.'" was not found.'."<br>\n";
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$objMod = new $modName($this->db);
|
$objMod = new $modName($this->db);
|
||||||
|
|
||||||
// Define disabledbyname and disabledbymodule
|
// Define disabledbyname and disabledbymodule
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user