Skip to content

Commit

Permalink
Fixes an error in add_JSScript method in Plugin library.
Browse files Browse the repository at this point in the history
  • Loading branch information
JB Lebrun committed Mar 10, 2020
1 parent 65cc705 commit f3e7f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Libraries/Objects/Plugin.php.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* <br />Parent object for Module, Template, Theme, Component, extends CaMykSLibrary.
* @details Engine / Object Library
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.4
* @version 1.0.5
* @date Creation: Nov 2019
* @date Modification: Mar 2020
* @copyright 2019 - 2020 CaMykS Team
Expand Down Expand Up @@ -421,7 +421,7 @@ abstract class Plugin extends CaMykSLibrary {
* @param string $condition
* @return void
*/
public function add_JSScript($script='', $unique=false, $event=null) {
public function add_JSScript($script='', $unique=false, $event='Main') {
global $CaMykS;
$CaMykS->HTMLPage->add_JSScript($script, $unique, $event);
}
Expand Down

0 comments on commit f3e7f32

Please sign in to comment.