mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-06-07 16:00:48 +00:00
Fix formatting on update messages so they're readable.
Load language files in update. Signed-off-by: Craig Phillips <craig@craigphillips.biz>
This commit is contained in:
parent
27c581edc2
commit
0e0cba30c6
|
@ -32,6 +32,9 @@ class com_jedcheckerInstallerScript
|
||||||
*/
|
*/
|
||||||
public function update($parent)
|
public function update($parent)
|
||||||
{
|
{
|
||||||
|
// Load our language
|
||||||
|
$this->loadLanguage();
|
||||||
|
|
||||||
// Doing it this way in case there are other old rules to be deleted
|
// Doing it this way in case there are other old rules to be deleted
|
||||||
$oldRules = array('htmlindexes');
|
$oldRules = array('htmlindexes');
|
||||||
|
|
||||||
|
@ -45,11 +48,11 @@ class com_jedcheckerInstallerScript
|
||||||
{
|
{
|
||||||
if(JFile::delete($rulePhpFile))
|
if(JFile::delete($rulePhpFile))
|
||||||
{
|
{
|
||||||
echo JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_PHP_FILE_REMOVED', $rule);
|
echo '<p>' . JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_PHP_FILE_REMOVED', $rule) . '</p>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_PHP_FILE_NOT_REMOVED', $rule);
|
echo '<p>' . JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_PHP_FILE_NOT_REMOVED', $rule) . '</p>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,11 +61,11 @@ class com_jedcheckerInstallerScript
|
||||||
{
|
{
|
||||||
if(JFile::delete($ruleIniFile))
|
if(JFile::delete($ruleIniFile))
|
||||||
{
|
{
|
||||||
echo JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_INI_FILE_REMOVED', $rule);
|
echo '<p>' . JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_INI_FILE_REMOVED', $rule) . '</p>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_INI_FILE_NOT_REMOVED', $rule);
|
echo '<p>' . JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_INI_FILE_NOT_REMOVED', $rule) . '</p>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user