mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-11-27 15:26:36 +00:00
PHPCS issues with tabs vs spaces.
Change message handling for easier debug. Signed-off-by: Craig Phillips <craig@craigphillips.biz>
This commit is contained in:
parent
d51b731914
commit
98434bbeaf
@ -32,7 +32,6 @@ class com_jedcheckerInstallerScript
|
||||
*/
|
||||
public function update($parent)
|
||||
{
|
||||
// Load our language
|
||||
$this->loadLanguage();
|
||||
|
||||
// Doing it this way in case there are other old rules to be deleted
|
||||
@ -48,12 +47,13 @@ class com_jedcheckerInstallerScript
|
||||
{
|
||||
if(JFile::delete($rulePhpFile))
|
||||
{
|
||||
echo '<p>' . JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_PHP_FILE_REMOVED', $rule) . '</p>';
|
||||
$msg = JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_PHP_FILE_REMOVED', $rule);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<p>' . JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_PHP_FILE_NOT_REMOVED', $rule) . '</p>';
|
||||
$msg = JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_PHP_FILE_NOT_REMOVED', $rule);
|
||||
}
|
||||
echo "<p>$msg</p>";
|
||||
}
|
||||
|
||||
// Remove the rule's ini file
|
||||
@ -61,12 +61,13 @@ class com_jedcheckerInstallerScript
|
||||
{
|
||||
if(JFile::delete($ruleIniFile))
|
||||
{
|
||||
echo '<p>' . JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_INI_FILE_REMOVED', $rule) . '</p>';
|
||||
$msg = JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_INI_FILE_REMOVED', $rule);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<p>' . JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_INI_FILE_NOT_REMOVED', $rule) . '</p>';
|
||||
$msg = JText::sprintf('COM_JEDCHECKER_OLD_RULE_X_INI_FILE_NOT_REMOVED', $rule);
|
||||
}
|
||||
echo "<p>$msg</p>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user