diff --git a/plugins/admin/systems/class_glpiPrinterCartridges.inc b/plugins/admin/systems/class_glpiPrinterCartridges.inc
index 708da0f4f24faaa6f93fd12bdd9ef7da39ee5051..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()
{
/* Call common method to give check the hook */
$message= plugin::check();