A bit more refactoring for subgroups.
[timetracker.git] / register.php
index 4568e37..0a8e6d1 100644 (file)
@@ -34,6 +34,10 @@ if (!isTrue(MULTITEAM_MODE) || $auth->isPasswordExternal()) {
   exit();
 }
 
+// Use the "limit" plugin if we have one. Ignore include errors.
+// The "limit" plugin is not required for normal operation of Time Tracker.
+@include('plugins/limit/register.php');
+
 $auth->doLogout();
 
 if (!defined('CURRENCY_DEFAULT')) define('CURRENCY_DEFAULT', '$');
@@ -111,7 +115,7 @@ if ($request->isPost()) {
   }
 } // isPost
 
-$smarty->assign('title', $i18n->get('title.create_group'));
+$smarty->assign('title', $i18n->get('title.add_group'));
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="document.groupForm.group_name.focus()"');
 $smarty->assign('content_page_name', 'register.tpl');