Skip to content

Commit

Permalink
Fixed the idea of erikdubbelboer#49
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdubbelboer committed Jun 26, 2014
1 parent b4446e2 commit c7d22a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "erik-dubbelboer/php-redis-admin",
"description": "Simple web interface to manage Redis databases.",
"version": "1.1.0",
"version": "1.1.1",
"license": "CC-BY-ND",
"homepage": "https://github.com/ErikDubbelboer/phpRedisAdmin",
"authors": [
Expand Down
6 changes: 4 additions & 2 deletions includes/header.inc.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

$version = '1-1-1';

header('Content-Type: text/html; charset=utf-8');
header('Cache-Control: private');

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

<?php foreach ($page['css'] as $css) { ?>
<link rel=stylesheet href="css/<?php echo $css; ?>.css?v1" media=all>
<link rel=stylesheet href="css/<?php echo $css; ?>.css?v<?=$version?>" media=all>
<?php } ?>

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

<?php foreach ($page['js'] as $js) { ?>
<script src="js/<?php echo $js; ?>.js?v1"></script>
<script src="js/<?php echo $js; ?>.js?v<?=$version?>"></script>
<?php } ?>

</head>
Expand Down
3 changes: 1 addition & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function print_namespace($item, $name, $fullkey, $islast) {
// Unset it so we won't loop over it when printing this namespace.
unset($item['__phpredisadmin__']);

$type = $redis->type($fullkey);
$class = array();
$len = false;

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

// Get the number of items in the key.
if (!isset($config['faster']) || !$config['faster']) {
switch ($type) {
switch ($redis->type($fullkey)) {
case 'hash':
$len = $redis->hLen($fullkey);
break;
Expand Down

0 comments on commit c7d22a1

Please sign in to comment.