Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomano committed Jan 2, 2024
1 parent 30ccbb8 commit f177534
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions Sources/Class-SimTopics.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* @package Similar Topics
* @link https://dragomano.ru/mods/similar-topics
* @author Bugo <bugo@dragomano.ru>
* @copyright 2012-2022 Bugo
* @copyright 2012-2024 Bugo
* @license https://opensource.org/licenses/BSD-3-Clause BSD
*
* @version 1.2.3
* @version 1.3
*/

if (!defined('SMF'))
Expand All @@ -34,7 +34,7 @@ public function loadTheme()

public function menuButtons()
{
global $modSettings, $context, $txt, $scripturl, $settings;
global $modSettings, $context, $txt, $settings;

if (empty($modSettings['simtopics_num_topics']) || isset($_REQUEST['xml']))
return;
Expand Down
54 changes: 27 additions & 27 deletions package-info.xml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<id>Bugo:SimTopics</id>
<name>Similar Topics</name>
<version>1.2.3</version>
<type>modification</type>

<install for="2.1.*">
<readme parsebbc="true" lang="english">readme/english.txt</readme>
<readme parsebbc="true" lang="russian">readme/russian.txt</readme>
<require-dir name="Themes" destination="$boarddir" />
<require-dir name="Sources" destination="$boarddir" />
<hook hook="integrate_pre_load" function="SimTopics::hooks#" file="$sourcedir/Class-SimTopics.php" />
<code>install.php</code>
<redirect url="?action=admin;area=modsettings;sa=simtopics" timeout="1000" />
</install>

<uninstall for="2.1.*">
<code>uninstall.php</code>
<hook hook="integrate_pre_load" function="SimTopics::hooks#" file="$sourcedir/Class-SimTopics.php" reverse="true" />
<remove-file name="$themedir/scripts/simtopics.js" />
<remove-file name="$themedir/SimTopics.template.php" />
<remove-file name="$sourcedir/Class-SimTopics.php" />
<remove-dir name="$languagedir/SimTopics" />
</uninstall>

<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<id>Bugo:SimTopics</id>
<name>Similar Topics</name>
<version>1.3</version>
<type>modification</type>

<install for="2.1.*">
<readme parsebbc="true" lang="english">readme/english.txt</readme>
<readme parsebbc="true" lang="russian">readme/russian.txt</readme>
<require-dir name="Themes" destination="$boarddir" />
<require-dir name="Sources" destination="$boarddir" />
<hook hook="integrate_pre_load" function="SimTopics::hooks#" file="$sourcedir/Class-SimTopics.php" />
<code>install.php</code>
<redirect url="?action=admin;area=modsettings;sa=simtopics" timeout="1000" />
</install>

<uninstall for="2.1.*">
<code>uninstall.php</code>
<hook hook="integrate_pre_load" function="SimTopics::hooks#" file="$sourcedir/Class-SimTopics.php" reverse="true" />
<remove-file name="$themedir/scripts/simtopics.js" />
<remove-file name="$themedir/SimTopics.template.php" />
<remove-file name="$sourcedir/Class-SimTopics.php" />
<remove-dir name="$languagedir/SimTopics" />
</uninstall>

</package-info>

0 comments on commit f177534

Please sign in to comment.