aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-10-25 19:59:32 +0000
committerrvelices <rv-github@modusoptimus.com>2012-10-25 19:59:32 +0000
commitf609713578c2c3d9cdd0531bf0b39a7952e06ce8 (patch)
tree60808b562726d27d556d1ad0f1a2f0211c9e0590
parent9f24af98f2af9651e6516eeeec4a2cc3a0809c87 (diff)
code simplification
git-svn-id: http://piwigo.org/svn/trunk@18746 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--i.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/i.php b/i.php
index 1416b4240..246c7c06c 100644
--- a/i.php
+++ b/i.php
@@ -361,9 +361,7 @@ function send_derivative($expires)
include_once(PHPWG_ROOT_PATH.'include/functions_cookie.inc.php');
include_once(PHPWG_ROOT_PATH.'include/functions_url.inc.php');
- $response = new json_response();
- $response->url = embellish_url(get_absolute_root_url().$page['derivative_path']);
- echo json_encode($response);
+ echo json_encode( array( 'url'=>embellish_url(get_absolute_root_url().$page['derivative_path']) ) );
return;
}
$fp = fopen($page['derivative_path'], 'rb');
@@ -390,11 +388,6 @@ function send_derivative($expires)
fclose($fp);
}
-class json_response
-{
- var $url;
-}
-
$page=array();
$begin = $step = microtime(true);
$timing=array();