Commit 98518d46fabe2793d4be61c328addf011b43d1b0

Authored by kevin_fourie
1 parent 088f04cd

KTS-2336

"Remove <br> from error and info boxes"
In Progress. Removed from PDF Generator.
 
Committed By: Kevin Fourie
Reviewed By: Jonathan Byrne



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7131 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktstandard/PDFGeneratorAction.php
@@ -240,14 +240,14 @@ class PDFGeneratorAction extends KTDocumentAction { @@ -240,14 +240,14 @@ class PDFGeneratorAction extends KTDocumentAction {
240 240
241 } else { 241 } else {
242 // Set the error messsage and redirect to view document 242 // Set the error messsage and redirect to view document
243 - $this->addErrorMessage(_kt('An error occurred generating the PDF - please contact the system administrator.<br>' . $res)); 243 + $this->addErrorMessage(_kt('An error occurred generating the PDF - please contact the system administrator. ' . $res));
244 redirect(generateControllerLink('viewDocument',sprintf(_kt('fDocumentId=%d'),$oDocument->getId()))); 244 redirect(generateControllerLink('viewDocument',sprintf(_kt('fDocumentId=%d'),$oDocument->getId())));
245 exit(0); 245 exit(0);
246 } 246 }
247 247
248 } else { 248 } else {
249 // Set the error messsage and redirect to view document 249 // Set the error messsage and redirect to view document
250 - $this->addErrorMessage(_kt('An error occurred generating the PDF - please contact the system administrator.<br>The path to the document did not exist.')); 250 + $this->addErrorMessage(_kt('An error occurred generating the PDF - please contact the system administrator. The path to the document did not exist.'));
251 redirect(generateControllerLink('viewDocument',sprintf(_kt('fDocumentId=%d'),$oDocument->getId()))); 251 redirect(generateControllerLink('viewDocument',sprintf(_kt('fDocumentId=%d'),$oDocument->getId())));
252 exit(0); 252 exit(0);
253 } 253 }