From 4663a327d38b3239397ffef069da81ce89f85c53 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 26 Sep 2018 22:04:25 +0900 Subject: [PATCH] Update hybridauth.lnk.php --- helper/hybridauth.lnk.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/helper/hybridauth.lnk.php b/helper/hybridauth.lnk.php index 478fba0..5d36aa6 100644 --- a/helper/hybridauth.lnk.php +++ b/helper/hybridauth.lnk.php @@ -8,6 +8,9 @@ if(!function_exists("load_hybridauth")) { function load_hybridauth() { + $result = false; + + $configfile = "./vendor/library/hauth.config.php"; $required_files = array( "hybridauth/hybridauth/library/Hybrid/Auth", "hybridauth/hybridauth/library/Hybrid/Endpoint", @@ -17,11 +20,16 @@ if(!function_exists("load_hybridauth")) { $inc_file = "./vendor/" . $file . ".php"; if(!file_exists($inc_file)) { set_error("File not exists. " . $inc_file); - show_erros(); + show_errors(); } else { include("./vendor/" . $file . ".php"); } } + + if(file_exists($configfile)) { + $result = $configfile; + } + + return $result; } } -