diff --git a/plugins/admin/systems/class_glpiPrinterCartridges.inc b/plugins/admin/systems/class_glpiPrinterCartridges.inc
index 4f31fdfa57fbfe12c3782ff252cb46e2db235d09..3d9d6301001a0e5dbe7b8ff89567c44aa178f7ed 100644 (file)
var $del = 0;
- function glpiPrinterCartridges ($config,$dn,$type)
+ function glpiPrinterCartridges (&$config,$dn,$type)
{
plugin::plugin ($config, $dn);
/* Create divlist */
$divlist = new divlist("glpi devices");
+ $divlist->SetPluginMode();
$divlist->SetEntriesPerPage(0);
$divlist->SetHeader(array(
array("string" => " ", "attach" => "style='text-align:center;width:20px;'"),
/* This function cehck all created devices if you wan't to create device specific check
use >>if($attr['device_type']=="moboard")<< to create a device type depending check
*/
- function check($attr)
+ function check()
{
- $message = array();
+ /* Call common method to give check the hook */
+ $message= plugin::check();
+
return($message);
}