-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the simpleschema library and EB helper install with the plugin. …
…Thanks @shantanutekdi
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
// No direct access to this file | ||
defined('_JEXEC') or die('Restricted access'); | ||
|
||
//Script class | ||
class plgapieasyblogInstallerScript | ||
{ | ||
public function postflight($type, $parent) | ||
{ | ||
//If type is install | ||
if ($type == 'install') | ||
{ | ||
//Move library file to Joomla libraries and delete it from plugin | ||
JFolder::move(JPATH_SITE.'/plugins/api/easyblog/libraries/simpleschema', JPATH_SITE.'/libraries/simpleschema'); | ||
JFolder::delete(JPATH_SITE.'/plugins/api/easyblog/libraries'); | ||
|
||
//Move helper file to easyblog helpers and delete it from plugin | ||
JFile::move(JPATH_SITE.'/plugins/api/easyblog/components/com_easyblog/helpers/simpleschema.php', JPATH_SITE.'/components/com_easyblog/helpers/simpleschema.php'); | ||
JFolder::delete(JPATH_SITE.'/plugins/api/easyblog/components'); | ||
} | ||
return true; | ||
} | ||
} |