Skip to content

Commit

Permalink
print value
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Jul 17, 2015
1 parent 7898b95 commit 95b8a9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions administrator/language/en-GB/en-GB.plg_quickicon_maxvars.ini
Expand Up @@ -3,5 +3,5 @@
; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
; Note : All ini files need to be saved as UTF-8

PLG_MAX_VARS_FAIL="You need to increase the value"
PLG_MAX_VARS_WARN="You are close to the maximum"
PLG_MAX_VARS_FAIL="You need to increase the value %s"
PLG_MAX_VARS_WARN="You are close to the maximum %s"
4 changes: 2 additions & 2 deletions plugins/quickicon/maxvars/maxvars.php
Expand Up @@ -76,11 +76,11 @@ public function onGetIcons($context)

if ($varcount >= $maxinputvars)
{
JFactory::getApplication()->enqueueMessage(JText::sprintf('PLG_MAX_VARS_FAIL', $text), 'error');
JFactory::getApplication()->enqueueMessage(JText::sprintf('PLG_MAX_VARS_FAIL', $varcount), 'error');
}
if (((($maxinputvars - $varcount) / $maxinputvars) * 100) > 80)
{
JFactory::getApplication()->enqueueMessage(JText::sprintf('PLG_MAX_VARS_WARN', $text), 'warning');
JFactory::getApplication()->enqueueMessage(JText::sprintf('PLG_MAX_VARS_WARN', $varcount), 'warning');
}
}
}

0 comments on commit 95b8a9f

Please sign in to comment.