From 0bd5605997c5c45b631f75606cfe87544c5e3082 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sun, 9 Dec 2018 22:38:38 -0800 Subject: php: fix whitespace. Signed-off-by: Robin H. Johnson --- php/index.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/php/index.php b/php/index.php index d1d4733..abb9671 100644 --- a/php/index.php +++ b/php/index.php @@ -43,16 +43,16 @@ if (!empty($_GET['os'])&&!empty($_GET['product'])) { } // LANGUAGE HACK - if (!empty($_GET['lang'])) { -//// $location['location_path'] = str_replace('x86',$_GET['lang'],$location['location_path']); - $location['location_path'] = str_replace('en-US',$_GET['lang'],$location['location_path']); - } + if (!empty($_GET['lang'])) { + //// $location['location_path'] = str_replace('x86',$_GET['lang'],$location['location_path']); + $location['location_path'] = str_replace('en-US',$_GET['lang'],$location['location_path']); + } - // BitTorrent HACK - robbat2 - if (!empty($_GET['extra'])) { - $extra = $_GET['extra']; - $location['location_path'] .= preg_replace('/\?.*|&.*/','',$extra); - } + // BitTorrent HACK - robbat2 + if (!empty($_GET['extra'])) { + $extra = $_GET['extra']; + $location['location_path'] .= preg_replace('/\?.*|&.*/','',$extra); + } // if we are just testing, then just print and exit. if (!empty($_GET['print'])) { -- cgit v1.2.3-65-gdbad