Skip to content

Commit

Permalink
Merge pull request #168 from dle-modules/6.0.2
Browse files Browse the repository at this point in the history
6.0.2
  • Loading branch information
pafnuty authored Feb 22, 2020
2 parents 0567d7e + 79c6a65 commit 1542ee6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 6.0.2
- Небольшой фикс ормирования URL с учётом модуля MultiLAnguage

# 6.0.1
- Полностью прекращена поддержка DLE старше 13 версии.
- Теперь можно вносить изменения в файлы модуля (не классы) через систему плагинов.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# DLE-BlockPro — тот самый модуль для вывода новостей!
![version](https://img.shields.io/badge/version-6.0.1-red.svg?style=flat-square "Version")
![version](https://img.shields.io/badge/version-6.0.2-red.svg?style=flat-square "Version")
![DLE](https://img.shields.io/badge/DLE-13.x-green.svg?style=flat-square "DLE Version")
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/dle-modules/DLE-BlockPro/blob/master/LICENSE)

Expand Down
2 changes: 1 addition & 1 deletion blockpro.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>BlockPro</name>
<description>Модуль предназначен для удобного вывода новостей на сайте</description>
<icon>engine/skins/images/blockpro.png</icon>
<version>6.0.1</version>
<version>6.0.2</version>
<dleversion>13</dleversion>
<versioncompare>greater</versioncompare>
<upgradeurl>https://updates.pafnuty.name/check-bp.php</upgradeurl>
Expand Down
2 changes: 1 addition & 1 deletion engine/inc/blockpro.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
define('MODULE_DIR', ENGINE_DIR . '/modules/base/admin/blockpro/');

$moduleName = 'blockpro';
$moduleVersion = '6.0.1';
$moduleVersion = '6.0.2';

$moderate = $_REQUEST['moderate'];
$moderate_checked = ($moderate) ? 'checked' : '';
Expand Down
4 changes: 2 additions & 2 deletions engine/modules/base/blockpro.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
// Если язык доступен, работаем
if (in_array($requestLang, $langList)) {
// Импортируем конфиг модуля MultiLanguage
include_once(DLEPlugins::Check(ENGINE_DIR.'/data/multilanguage_config.php'));
include(DLEPlugins::Check(ENGINE_DIR.'/data/multilanguage_config.php'));

// Если модуль включен, работаем
if ($lang_config['mod_on']) {
Expand Down Expand Up @@ -996,7 +996,7 @@
if ($newsItem['allow_rate']) {
$newsItem['showRatingCount'] = '<span class="ignore-select" data-vote-num-id="'.$newsItem['id'].'">'
.$newsItem['vote_num'].'</span>';
$jsRAteFunctionName = 'base_rate';
$jsRAteFunctionName = 'base_rate';

if ($base->dle_config['short_rating'] and $user_group[$member_id['user_group']]['allow_rating']) {
$newsItem['showRating'] = baseShowRating($newsItem['id'], $newsItem['rating'], $newsItem['vote_num'],
Expand Down

0 comments on commit 1542ee6

Please sign in to comment.