Skip to content

Commit

Permalink
Fix issue with statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
Indexhibit committed Dec 10, 2019
1 parent d5a2f37 commit 05222bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ndxzsite/plugin/plugin.new_statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class New_statistics

public function __construct()
{
$this->uri = (isset($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : '';
$this->refer = (isset($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : '';
$this->uri = (isset($_SERVER['REQUEST_URI'])) ? htmlspecialchars($_SERVER['REQUEST_URI']) : '';
$this->refer = (isset($_SERVER['HTTP_REFERER'])) ? htmlspecialchars($_SERVER['HTTP_REFERER']) : '';
}

public function counter()
Expand Down
2 changes: 1 addition & 1 deletion ndxzstudio/defaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ini_set("magic_quotes_runtime", 0);

// version
define('VERSION', '2.1.5');
define('VERSION', '2.1.6');

// Paths/definitions of things (relative to index file)
define('LIBPATH', 'lib');
Expand Down
3 changes: 2 additions & 1 deletion ndxzstudio/lib/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function tpl_update_available()
$params = array();
$params['v'] = VERSION;
$params['method'] = 'version';
$params['lang'] = $OBJ->vars->settings['site_lang'];

$encoded_params = array();

Expand All @@ -89,7 +90,7 @@ public function tpl_update_available()
// new version available?
if ($result['success'] == true)
{
return "<div style='height: 36px; background: red; color: white;'><div style='padding: 12px;'>A new version is available - <a href='https://www.indexhibit.org/news/' style='color: white;'>click here</a></div></div>";
return $result['msg'];
}

if (VERSION > $OBJ->vars->settings['version'])
Expand Down

0 comments on commit 05222bd

Please sign in to comment.