File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ public function __construct(&$subject, $config = array())
16
16
{
17
17
parent ::__construct ($ subject , $ config = array ());
18
18
19
- $ easyblog = JPATH_ROOT . '/administrator/components/com_easyblog/easyblog.php ' ;
20
- if (!JFile::exists ($ easyblog )) {
19
+ $ easyblog = JPATH_ROOT . '/administrator/components/com_easyblog/easyblog.php ' ;
20
+ if (!JFile::exists ($ easyblog ) || JComponentHelper:: isEnabled ( ' com_easysocial ' , true ) ) {
21
21
ApiError::raiseError (404 , 'Easyblog not installed ' );
22
22
return ;
23
23
}
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ function keygen()
76
76
$ result = $ kmodel ->save ($ data );
77
77
$ key = $ result ->hash ;
78
78
//add new key in easysocial table
79
- if (JComponentHelper::isEnabled ('com_easysocial ' , true ))
79
+ $ easyblog = JPATH_ROOT . '/administrator/components/com_easyblog/easyblog.php ' ;
80
+ if (JFile::exists ($ easyblog ) && JComponentHelper::isEnabled ('com_easysocial ' , true )) {
80
81
{
81
82
$ this ->updateEauth ( $ user , $ key );
82
83
}
@@ -95,9 +96,10 @@ function keygen()
95
96
}
96
97
return ( $ obj );
97
98
}
99
+
98
100
/*
99
- * function for update easyblog keys
100
- * /
101
+ * function to update Easyblog auth keys
102
+ */
101
103
public function updateEauth ($ user =null ,$ key =null )
102
104
{
103
105
require_once JPATH_ADMINISTRATOR .'/components/com_easysocial/includes/foundry.php ' ;
You can’t perform that action at this time.
0 commit comments