Skip to content

Commit

Permalink
v1.40 php upgrade code
Browse files Browse the repository at this point in the history
  • Loading branch information
psrustik committed Jul 13, 2015
1 parent 176ac92 commit a2074c3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private function createModArchive()
$zip->addGlob('*.xml');
$zip->addGlob('*.txt');
$zip->addGlob('languages/*.xml');
$zip->addGlob('upgrades/*.xml');
$zip->addGlob('upgrades/*.*');
$zip->deleteName('RoboFile.php'); //self
$zip->close();
$this->say("Created zip $filename");
Expand Down
2 changes: 1 addition & 1 deletion package-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
- Removed unnecessary template patches
</readme>
<require-file name="CleantalkMod.php" destination="$sourcedir/cleantalk">Mod main file</require-file>
<code type="inline">add_integration_function('integrate_load_theme', 'cleantalk_load');</code>
<modification format="xml" type="file">upgrades/1.40.xml</modification>
<code type="file">upgrades/1.40.php</code>
<redirect url="$boardurl/index.php?action=admin;area=modsettings" type="inline">Please stand by while
you are being redirected to this mod configuration settings.
</redirect>
Expand Down
5 changes: 5 additions & 0 deletions upgrades/1.40.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php
add_integration_function('integrate_load_theme', 'cleantalk_load');

// flush settings cache
cache_put_data('modSettings', null, 1);

0 comments on commit a2074c3

Please sign in to comment.