From 863cc78e6b87c89211eebcb7c0ce38d408fdebba Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Fri, 22 Jul 2016 22:06:56 +0000 Subject: [PATCH] Refactoring - renamed a variable. --- WEB-INF/templates/footer.tpl | 2 +- profile_edit.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index f27bc08f..5ee09800 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.9.27.3517 | Copyright © Anuko | +  Anuko Time Tracker 1.9.27.3518 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/profile_edit.php b/profile_edit.php index 06f1c566..2304c92c 100644 --- a/profile_edit.php +++ b/profile_edit.php @@ -69,7 +69,7 @@ if ($request->isPost()) { $cl_tax_expenses = $request->getParameter('tax_expenses'); $cl_notifications = $request->getParameter('notifications'); $cl_locking = $request->getParameter('locking'); - $cl_monthly_quota = $request->getParameter('quotas'); + $cl_quotas = $request->getParameter('quotas'); } } else { $cl_name = $user->name; @@ -98,7 +98,7 @@ if ($request->isPost()) { $cl_tax_expenses = in_array('et', $plugins); $cl_notifications = in_array('no', $plugins); $cl_locking = in_array('lk', $plugins); - $cl_monthly_quota = in_array('mq', $plugins); + $cl_quotas = in_array('mq', $plugins); } } @@ -178,7 +178,7 @@ if ($user->canManageTeam()) { $form->addInput(array('type'=>'checkbox','name'=>'tax_expenses','data'=>1,'value'=>$cl_tax_expenses)); $form->addInput(array('type'=>'checkbox','name'=>'notifications','data'=>1,'value'=>$cl_notifications,'onchange'=>'handlePluginCheckboxes()')); $form->addInput(array('type'=>'checkbox','name'=>'locking','data'=>1,'value'=>$cl_locking,'onchange'=>'handlePluginCheckboxes()')); - $form->addInput(array('type'=>'checkbox','name'=>'quotas','data'=>1,'value'=>$cl_monthly_quota,'onchange'=>'handlePluginCheckboxes()')); + $form->addInput(array('type'=>'checkbox','name'=>'quotas','data'=>1,'value'=>$cl_quotas,'onchange'=>'handlePluginCheckboxes()')); } $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->getKey('button.save'))); @@ -229,7 +229,7 @@ if ($request->isPost()) { $plugins .= ',no'; if ($cl_locking) $plugins .= ',lk'; - if ($cl_monthly_quota) + if ($cl_quotas) $plugins .= ',mq'; $plugins = trim($plugins, ','); -- 2.20.1