-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix removing schedule task on uninstall
Signed-off-by: Diego Andrés <[email protected]>
- Loading branch information
1 parent
ac3bc65
commit a32902e
Showing
3 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/** | ||
* @package ST Shop | ||
* @version 4.0 | ||
* @author Diego Andrés <[email protected]> | ||
* @copyright Copyright (c) 2020, SMF Tricks | ||
* @license https://www.mozilla.org/en-US/MPL/2.0/ | ||
*/ | ||
|
||
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF')) | ||
require_once(dirname(__FILE__) . '/SSI.php'); | ||
|
||
elseif (!defined('SMF')) | ||
exit('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.'); | ||
|
||
global $smcFunc, $context; | ||
|
||
db_extend('packages'); | ||
|
||
$smcFunc['db_query']('', ' | ||
DELETE FROM {db_prefix}scheduled_tasks | ||
WHERE task = {string:name}', | ||
[ | ||
'name' => 'shop_bank_interest', | ||
] | ||
); |