Advertisement
daymobrew

yeloni-exit-popup 6.3.0 correct set_include_path() usage

Feb 21st, 2018
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.86 KB | None | 0 0
  1. --- yetience-plugin.orig.php    2018-02-21 13:24:49.000000000 +0000
  2. +++ yetience-plugin.php 2018-02-21 13:32:42.787295600 +0000
  3. @@ -12,7 +12,7 @@
  4.  //ini_set('display_startup_errors', 1);
  5.  //error_reporting(E_ALL);
  6.  
  7. -set_include_path("./");
  8. +set_include_path(get_include_path() . PATH_SEPARATOR . "./");
  9.  
  10.  //adding only if the class has not been loaded already.
  11.  //useful if there are multiple plugins of yetience family being used.
  12. --- wordpress/yetience-class.orig.php   2018-02-21 13:24:50.000000000 +0000
  13. +++ wordpress/yetience-class.php    2018-02-21 13:29:56.516258900 +0000
  14. @@ -7,7 +7,7 @@
  15.     function __construct($product_label,$plugin_title,$plugin_folder,$include_path,$deployment,$yetience_version){
  16.  
  17.  
  18. -       set_include_path($include_path);
  19. +       set_include_path(get_include_path() . PATH_SEPARATOR . $include_path);
  20.  
  21.         include "yetience_config.php";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement