|
@@ -57,10 +57,10 @@ class configuration {
|
57
|
57
|
$this->check_version = $this->get_option("check_version");
|
58
|
58
|
|
59
|
59
|
//TODO: Soporte de los plugins desde BD activar/desactivar
|
60
|
|
- if ($handle = opendir("plugins")) {
|
|
60
|
+ if ($handle = opendir(Absolute_Path."plugins")) {
|
61
|
61
|
while (false !== ($file = readdir($handle))) {
|
62
|
|
- if (substr($file, strlen($file)-3, 3) == "php") {
|
63
|
|
- require_once("plugins/{$file}");
|
|
62
|
+ if (substr($file, strlen($file)-4, 4) == ".php") {
|
|
63
|
+ require_once(Absolute_Path."plugins/{$file}");
|
64
|
64
|
$this->plugins[] = substr($file, 0, strlen($file)-4);
|
65
|
65
|
}
|
66
|
66
|
}
|