Moved the INTERNAL_ERROR calls to use the class function instead of the global one.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@561 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-14 21:21:21 +00:00
parent fe1b0626c2
commit 83e552211f
4 changed files with 14 additions and 14 deletions

View File

@@ -342,7 +342,7 @@ class LeasesController extends AppController {
// REVISIT <AP>: 20090708
// We should probably seek confirmation first...
if (!$this->Lease->closeable($id)) {
INTERNAL_ERROR("This lease is not ready to close");
$this->INTERNAL_ERROR("This lease is not ready to close");
$this->redirect(array('action'=>'view', $id));
}
@@ -503,7 +503,7 @@ class LeasesController extends AppController {
// when a charge is reimbursed; a bug that we'll either
// need to fix, or we'll have to revisit this assumption.
if ($outstanding_balance < 0)
INTERNAL_ERROR("Should not have a customer lease credit.");
$this->INTERNAL_ERROR("Should not have a customer lease credit.");
/* if ($outstanding_balance < 0) */
/* $this->sidemenu_links[] = */