diff --git a/init.php b/init.php index a671489b..2fee9d33 100644 --- a/init.php +++ b/init.php @@ -92,6 +92,7 @@ function db($table) { } } +!defined('VIEW_PATH') && define('VIEW_PATH', ROOT . 'view/'); if (!function_exists('view')) { function view($file, $set = null) { return view::load($file, $set = null); diff --git a/lib/onedrive.php b/lib/onedrive.php index a692ca2f..729e63cb 100644 --- a/lib/onedrive.php +++ b/lib/onedrive.php @@ -64,7 +64,6 @@ static function get_token($refresh_token){ $post_data = "client_id={$client_id}&redirect_uri={$redirect_uri}&client_secret={$client_secret}&refresh_token={$refresh_token}&grant_type=refresh_token&resource={$resource_id}"; fetch::$headers = "Content-Type: application/x-www-form-urlencoded"; $resp = fetch::post($url, $post_data); - var_dump($resp); $data = json_decode($resp->content, true); return $data; }