Skip to content

Commit c7d22a1

Browse files
Fixed the idea of erikdubbelboer#49
1 parent b4446e2 commit c7d22a1

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "erik-dubbelboer/php-redis-admin",
33
"description": "Simple web interface to manage Redis databases.",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"license": "CC-BY-ND",
66
"homepage": "https://github.com/ErikDubbelboer/phpRedisAdmin",
77
"authors": [

includes/header.inc.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
$version = '1-1-1';
4+
35
header('Content-Type: text/html; charset=utf-8');
46
header('Cache-Control: private');
57

@@ -24,13 +26,13 @@
2426
<title><?php echo format_html($server['host'])?> - phpRedisAdmin</title>
2527

2628
<?php foreach ($page['css'] as $css) { ?>
27-
<link rel=stylesheet href="http://github.com/css/%3Cspan%20class="pl-ent"><?php echo $css; ?>.css?v1" media=all>
29+
<link rel=stylesheet href="http://github.com/css/%3Cspan%20class="pl-ent"><?php echo $css; ?>.css?v<?=$version?>" media=all>
2830
<?php } ?>
2931

3032
<link rel="shortcut icon" href="images/favicon.png">
3133

3234
<?php foreach ($page['js'] as $js) { ?>
33-
<script src="http://github.com/js/%3Cspan%20class="pl-ent"><?php echo $js; ?>.js?v1"></script>
35+
<script src="http://github.com/js/%3Cspan%20class="pl-ent"><?php echo $js; ?>.js?v<?=$version?>"></script>
3436
<?php } ?>
3537

3638
</head>

index.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ function print_namespace($item, $name, $fullkey, $islast) {
4949
// Unset it so we won't loop over it when printing this namespace.
5050
unset($item['__phpredisadmin__']);
5151

52-
$type = $redis->type($fullkey);
5352
$class = array();
5453
$len = false;
5554

@@ -62,7 +61,7 @@ function print_namespace($item, $name, $fullkey, $islast) {
6261

6362
// Get the number of items in the key.
6463
if (!isset($config['faster']) || !$config['faster']) {
65-
switch ($type) {
64+
switch ($redis->type($fullkey)) {
6665
case 'hash':
6766
$len = $redis->hLen($fullkey);
6867
break;

0 commit comments

Comments
 (0)