Use request::protocol().

This commit is contained in:
Bharat Mediratta
2010-06-18 15:20:32 -07:00
parent b1a6fd3e59
commit ec40e03a37
2 changed files with 1 additions and 3 deletions

View File

@@ -33,8 +33,6 @@ class Organize_Controller extends Controller {
$user = identity::active_user();
$v->access_key = rest::get_access_key($user->id)->access_key;
$v->protocol = (empty($_SERVER["HTTPS"]) OR $_SERVER["HTTPS"] === "off") ? "http" : "https";
$v->file_filter = addslashes(json_encode(
array("photo" => array("label" => "Images",
"types" => array("*.jpg", "*.jpeg", "*.png", "*.gif")),