From 56022bf529b9e43dab1fb92de606340a1df40c2e Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 14 Apr 2008 10:21:16 +0000 Subject: [PATCH] Even more errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10407 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/ppd/class_printerPPDDialog.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc b/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc index bfb18cf1c..7e070e615 100644 --- a/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc +++ b/gosa-plugins/goto/admin/systems/ppd/class_printerPPDDialog.inc @@ -97,7 +97,7 @@ class printerPPDDialog extends plugin /* Check if path is write/readable*/ $is_r = @is_readable($path); if(((!is_dir($path))||(empty($path)) || (!$is_r)) && (!@mkdir($path))){ - msg_dialog(_("Configuration error"), sprintf(_("Cannot open PPD path '%s' for reading and writing!"), $path), ERROR_DIALOG); + msg_dialog::display(_("Configuration error"), sprintf(_("Cannot open PPD path '%s' for reading and writing!"), $path), ERROR_DIALOG); /* Print out template */ $display.= $smarty->fetch(get_template_path('printerPPDDialog.tpl', TRUE,dirname(__FILE__))); @@ -115,7 +115,7 @@ class printerPPDDialog extends plugin $this->SelectPPD($name); } }else{ - msg_dialog(_("PPD error"), msgPool::incorrectUpload(_("file is empty")), ERROR_DIALOG); + msg_dialog::display(_("PPD error"), msgPool::incorrectUpload(_("file is empty")), ERROR_DIALOG); } } @@ -498,7 +498,7 @@ class printerPPDDialog extends plugin $str .= "\n"; }else{ - msg_dialog(_("PPD error"), sprintf(_("PPD type '%s' is not supported!"), $type), ERROR_DIALOG); + msg_dialog::display(_("PPD error"), sprintf(_("PPD type '%s' is not supported!"), $type), ERROR_DIALOG); } $str .= "\n"; } @@ -515,13 +515,13 @@ class printerPPDDialog extends plugin if(file_exists($path)){ if(is_writeable($path)){ if(!@unlink($path)){ - msg_dialog(_("PPD error"), msgPool::cannotDeleteFile($path), ERROR_DIALOG); + msg_dialog::display(_("PPD error"), msgPool::cannotDeleteFile($path), ERROR_DIALOG); } }else{ - msg_dialog(_("PPD error"), msgPool::cannotDeleteFile($path), ERROR_DIALOG); + msg_dialog::display(_("PPD error"), msgPool::cannotDeleteFile($path), ERROR_DIALOG); } }else{ - msg_dialog(_("PPD error"), msgPool::cannotDeleteFile($path), ERROR_DIALOG); + msg_dialog::display(_("PPD error"), msgPool::cannotDeleteFile($path), ERROR_DIALOG); } } -- 2.30.2