From: Michael J. Rubinsky Date: Thu, 22 Oct 2009 18:12:04 +0000 (-0400) Subject: Use constant X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=03574686276c35b50b5c984ebfa7526a219dfe2d;p=horde.git Use constant --- diff --git a/kronolith/lib/Forms/CreateResourceGroup.php b/kronolith/lib/Forms/CreateResourceGroup.php index bce170f43..90b28e710 100644 --- a/kronolith/lib/Forms/CreateResourceGroup.php +++ b/kronolith/lib/Forms/CreateResourceGroup.php @@ -28,7 +28,7 @@ class Kronolith_CreateResourceGroupForm extends Horde_Form { { parent::Horde_Form($vars, _("Create Resource")); - $resources = Kronolith::getDriver('Resource')->listResources(PERMS_READ, array('type' => 'Single')); + $resources = Kronolith::getDriver('Resource')->listResources(PERMS_READ, array('type' => Kronolith_Resource::TYPE_SINGLE)); $enum = array(); foreach ($resources as $resource) { $enum[$resource->getId()] = htmlspecialchars($resource->get('name')); diff --git a/kronolith/lib/Forms/EditResourceGroup.php b/kronolith/lib/Forms/EditResourceGroup.php index 32c660317..54597ce31 100644 --- a/kronolith/lib/Forms/EditResourceGroup.php +++ b/kronolith/lib/Forms/EditResourceGroup.php @@ -32,7 +32,7 @@ class Kronolith_EditResourceGroupForm extends Horde_Form { { $this->_resource = &$resource; parent::Horde_Form($vars, sprintf(_("Edit %s"), $resource->get('name'))); - $resources = Kronolith::getDriver('Resource')->listResources(PERMS_READ, array('type' => 'Single')); + $resources = Kronolith::getDriver('Resource')->listResources(PERMS_READ, array('type' => Kronolith_Resource::TYPE_SINGLE)); $enum = array(); foreach ($resources as $r) { $enum[$r->getId()] = htmlspecialchars($r->get('name')); diff --git a/kronolith/resources/groups/index.php b/kronolith/resources/groups/index.php index db2346ca7..d444fc90e 100644 --- a/kronolith/resources/groups/index.php +++ b/kronolith/resources/groups/index.php @@ -18,7 +18,7 @@ if (!Horde_Auth::getAuth()) { $edit_url_base = Horde::applicationUrl('resources/groups/edit.php'); $edit_img = Horde::img('edit.png', _("Edit"), null, $registry->getImageDir('horde')); -$resources = Kronolith::getDriver('Resource')->listResources(PERMS_EDIT, array('type' => 'Group')); +$resources = Kronolith::getDriver('Resource')->listResources(PERMS_EDIT, array('type' => Kronolith_Resource::TYPE_GROUP)); //$display_url_base = Horde::applicationUrl('month.php', true, -1); $delete_url_base = Horde::applicationUrl('resources/groups/delete.php'); $delete_img = Horde::img('delete.png', _("Delete"), null, $registry->getImageDir('horde')); diff --git a/kronolith/resources/index.php b/kronolith/resources/index.php index 9c760435c..a36ff7287 100644 --- a/kronolith/resources/index.php +++ b/kronolith/resources/index.php @@ -17,7 +17,7 @@ if (!Horde_Auth::getAuth()) { } $edit_url_base = Horde::applicationUrl('resources/edit.php'); $edit_img = Horde::img('edit.png', _("Edit"), null, $registry->getImageDir('horde')); -$resources = Kronolith::getDriver('Resource')->listResources(PERMS_READ, array('type' => 'Single')); +$resources = Kronolith::getDriver('Resource')->listResources(PERMS_READ, array('type' => Kronolith_Resource::TYPE_SINGLE)); $display_url_base = Horde::applicationUrl('month.php', true, -1); $delete_url_base = Horde::applicationUrl('resources/delete.php'); $delete_img = Horde::img('delete.png', _("Delete"), null, $registry->getImageDir('horde'));