Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -141,6 +141,15 @@ class _rules extends \IPS\Node\Controller
|
||||
$rule = \IPS\core\Achievements\Rule::load( \IPS\Request::i()->id );
|
||||
$rule->enabled = (int) \IPS\Request::i()->enable;
|
||||
$rule->save();
|
||||
|
||||
if ( \IPS\Request::i()->enable )
|
||||
{
|
||||
\IPS\Session::i()->log( 'acplogs__rule_enabled', array( $rule->id => FALSE ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
\IPS\Session::i()->log( 'acplogs__rule_disabled', array( $rule->id => FALSE ) );
|
||||
}
|
||||
|
||||
\IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=core&module=achievements&controller=rules' ), 'updated' );
|
||||
}
|
||||
@@ -230,6 +239,8 @@ class _rules extends \IPS\Node\Controller
|
||||
catch( \Exception $e ) { }
|
||||
}
|
||||
}
|
||||
|
||||
\IPS\Session::i()->log( 'acplogs__rules_exported' );
|
||||
|
||||
\IPS\Output::i()->sendOutput( $xml->asXML(), 200, 'application/xml', array( 'Content-Disposition' => \IPS\Output::getContentDisposition( 'attachment', "Achievement_Rules.xml" ) ) );
|
||||
}
|
||||
@@ -285,6 +296,8 @@ class _rules extends \IPS\Node\Controller
|
||||
{
|
||||
\IPS\Output::i()->error( $e->getMessage(), '2C424/1', 403, '' );
|
||||
}
|
||||
|
||||
\IPS\Session::i()->log( 'acplogs__rules_imported' );
|
||||
|
||||
\IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=core&module=achievements&controller=rules' ), 'completed' );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user