Enable control of creating children in templates

This commit is contained in:
Deon George
2009-09-20 10:21:44 +10:00
parent d062308f32
commit f0a6d312ab
5 changed files with 19 additions and 7 deletions

View File

@@ -36,9 +36,6 @@ if (! $request['container'])
$request['container'] = $tree->getEntry($request['template']->getContainer());
if ($request['container']->isLeaf())
error(sprintf(_('The container (%s) is a leaf.'),$request['template']->getContainer()),'error','index.php');
# Check our RDN
if (! count($request['template']->getRDNAttrs()))
error(_('The were no attributes marked as an RDN attribute.'),'error','index.php');

View File

@@ -30,9 +30,6 @@ if (! $request['container'])
$request['container'] = $tree->getEntry($request['template']->getContainer());
if ($request['container']->isLeaf())
error(sprintf(_('The container (%s) is a leaf.'),$request['template']->getContainer()),'error','index.php');
# Check our RDN
if (! count($request['template']->getRDNAttrs()))
error(_('The were no attributes marked as an RDN attribute.'),'error','index.php');