Notes |
|
(0002019)
|
eureka
|
2011-07-07 10:25
|
|
This problem is normally fixed since version 2.3. What version of web2project do you use? |
|
|
(0002020)
|
santosdiez
|
2011-07-07 10:29
(Last edited: 2011-07-07 10:30) |
|
We started using 2.3.1, and now we are currently using a version close to the development one (future 2.4).
I've already sent a pull request with a (at least temporary) fix :)
|
|
|
(0002022)
|
eureka
|
2011-07-09 10:36
(Last edited: 2011-07-09 10:46) |
|
ok, you're right !
I tried with future 2.4 !
in includes/main_functions.php, replace lines 96 to 119 by :
if (file_exists(W2P_BASE_DIR.'/classes/'.$name.'.class.php')) {
require_once W2P_BASE_DIR.'/classes/'.$name.'.class.php';
return;
}
if ($name[0] == 'c') {
$name = substr($name, 1);
}
if (file_exists(W2P_BASE_DIR.'/modules/'.$name.'/'.$name.'.class.php')) {
require_once W2P_BASE_DIR.'/modules/'.$name.'/'.$name.'.class.php';
return;
}
if (!in_array($name, array('system'))) {
$name = w2p_pluralize($name);
}
if (file_exists(W2P_BASE_DIR.'/modules/'.$name.'/'.$name.'.class.php')) {
require_once W2P_BASE_DIR.'/modules/'.$name.'/'.$name.'.class.php';
return;
}
break;
|
|
|
|
Great! ;)
I've replaced my kludgy workaround with your piece of code in my branch solving this issue.
It was already sent as pull request, so thank you so much! |
|
|
|
Resolved by pull request in r1985; |
|