Skip to content

Commit

Permalink
Upgrade XML for v1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
psrustik committed May 26, 2015
1 parent da75df4 commit c651642
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ private function createModArchive()
$zip->addGlob('*.xml');
$zip->addGlob('*.txt');
$zip->addGlob('languages/*.xml');
$zip->addGlob('upgrades/*.xml');
$zip->deleteName('RoboFile.php'); //self
$zip->close();
$this->say("Created zip $filename");
Expand Down
19 changes: 19 additions & 0 deletions package-info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,23 @@

<remove-dir name="$sourcedir/cleantalk/"/>
</uninstall>
<upgrade from="1.0-1.20">
<readme type="inline" parsebbc="true">
<![CDATA[[size=14pt][color=red]Please uninstall old version cleantalk mod when installing newer version![/color][/size]]]>
</readme>
</upgrade>
<upgrade from="1.21">
<readme type="inline" parsebbc="true">This upgrade for Antispam by Cleantalk from 1.21 to 1.30 version:
- Updated Cleantalk API to v2.0.0
- Added logging option for enable/disable logging to SMF
</readme>
<require-file name="CleantalkMod.php" destination="$sourcedir/cleantalk">Mod main file</require-file>
<require-file name="cleantalk.class.php" destination="$sourcedir/cleantalk">Cleantalk API</require-file>
<code type="inline">updateSettings(array('cleantalk_logging' => '0'), false);</code>
<modification format="xml" type="file">upgrades/1.30.xml</modification>
<modification format="xml" type="file">upgrades/1.30_windows1251.xml</modification>
<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>
</upgrade>
</package-info>
27 changes: 27 additions & 0 deletions upgrades/1.30.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="www.simplemachines.org/xml/modification">
<id>cleantalk:antispam</id>
<version>1.0</version>
<file name="$languagedir/Modifications.english.php" error="skip">
<operation>
<search position="replace"><![CDATA[// CleanTalk messages end]]></search>
<add><![CDATA[$txt['cleantalk_logging'] = 'Enable logging';
// CleanTalk messages end]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.english-utf8.php" error="skip">
<operation>
<search position="replace"><![CDATA[// CleanTalk messages end]]></search>
<add><![CDATA[$txt['cleantalk_logging'] = 'Enable logging';
// CleanTalk messages end]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.russian-utf8.php" error="skip">
<operation>
<search position="replace"><![CDATA[// CleanTalk messages end]]></search>
<add><![CDATA[$txt['cleantalk_logging'] = 'Включить логирование ответов сервиса';
// CleanTalk messages end]]></add>
</operation>
</file>
</modification>
13 changes: 13 additions & 0 deletions upgrades/1.30_windows1251.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="WINDOWS-1251"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="www.simplemachines.org/xml/modification">
<id>cleantalk:antispam</id>
<version>1.0</version>
<file name="$languagedir/Modifications.russian.php" error="skip">
<operation>
<search position="replace"><![CDATA[// CleanTalk messages end]]></search>
<add><![CDATA[$txt['cleantalk_logging'] = ''Âêëþ÷èòü ëîãèðîâàíèå îòâåòîâ ñåðâèñà'';
// CleanTalk messages end]]></add>
</operation>
</file>
</modification>

0 comments on commit c651642

Please sign in to comment.