Commit 08f6405c authored by Vadim's avatar Vadim

Version: 2.9.2

* Исправлена ошибка отображения статистики на дочерних страницах
parent 0bd76ed4
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Plugin Name: Bg Az-Counter Plugin Name: Bg Az-Counter
Plugin URI: https://bogaiskov.ru Plugin URI: https://bogaiskov.ru
Description: Подсчет количества посещений страниц на базе stat.azbyka.ru Description: Подсчет количества посещений страниц на базе stat.azbyka.ru
Version: 2.9.1 Version: 2.9.2
Author: VBog Author: VBog
Author URI: https://bogaiskov.ru Author URI: https://bogaiskov.ru
License: GPL2 License: GPL2
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
if ( !defined('ABSPATH') ) { if ( !defined('ABSPATH') ) {
die( 'Sorry, you are not allowed to access this page directly.' ); die( 'Sorry, you are not allowed to access this page directly.' );
} }
define('BG_COUNTER_VERSION', '2.9.1'); define('BG_COUNTER_VERSION', '2.9.2');
define('BG_COUNTER_LOG', dirname(__FILE__ ).'/bg_counter.log'); define('BG_COUNTER_LOG', dirname(__FILE__ ).'/bg_counter.log');
define('BG_COUNTER_STAT_COUNTERS','https://stat.azbyka.ru/counters'); define('BG_COUNTER_STAT_COUNTERS','https://stat.azbyka.ru/counters');
......
...@@ -257,7 +257,7 @@ function bg_az_counter_views ($type=null, $id=null, $now=null, $rate=null, $view ...@@ -257,7 +257,7 @@ function bg_az_counter_views ($type=null, $id=null, $now=null, $rate=null, $view
$proj = preg_replace('#[\.\/\\\\]#i', '_', $proj) ; $proj = preg_replace('#[\.\/\\\\]#i', '_', $proj) ;
} }
$proj = '/project/'.$proj; $proj = '/project/'.$proj;
if (is_null($pr) && (($project != $proj) || get_post_meta( $id, 'link', true ))) $id = null;// Заглушка для ссылок на другие проекты if (is_null($pr) && (($project != substr($proj,0, strlen ($project))) || get_post_meta( $id, 'link', true ))) $id = null;// Заглушка для ссылок на другие проекты
} }
if (!is_null($type) && !is_null($id)) { if (!is_null($type) && !is_null($id)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment