Skip to content

Commit c71d212

Browse files
authored
Composer fixes (#157)
* Composer fix
1 parent b48e5a6 commit c71d212

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GigyaAction.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ public function __construct() {
123123
public function init()
124124
{
125125
/* Require SDK libraries */
126-
require_once GIGYA__PLUGIN_DIR . 'vendor/autoload.php'; /* If the plugin is installed by Composer as a `wordpress-plugin`, this becomes unnecessary, but require_once makes sure it's not included again */
126+
if ( file_exists( GIGYA__PLUGIN_DIR . 'vendor/autoload.php' ) ) { /* If the plugin is installed by Composer as a `wordpress-plugin`, this becomes unnecessary, but require_once makes sure it's not included again */
127+
require_once GIGYA__PLUGIN_DIR . 'vendor/autoload.php';
128+
}
127129
require_once GIGYA__PLUGIN_DIR . 'cms_kit/GigyaJsonObject.php';
128130
require_once GIGYA__PLUGIN_DIR . 'cms_kit/GigyaUserFactory.php';
129131
require_once GIGYA__PLUGIN_DIR . 'cms_kit/GigyaProfile.php';

0 commit comments

Comments
 (0)