File tree 2 files changed +16
-11
lines changed
2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 10
10
* @copyright 2010 Luracast
11
11
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
12
12
* @link http://luracast.com/products/restler/
13
- * @version 2.1.9
13
+ * @version 2.2.0
14
14
*/
15
15
class Restler
16
16
{
@@ -20,7 +20,7 @@ class Restler
20
20
//
21
21
// ------------------------------------------------------------------
22
22
23
- const VERSION = '2.1.9 ' ;
23
+ const VERSION = '2.2.0 ' ;
24
24
25
25
/**
26
26
* URL of the currently mapped service
@@ -1422,10 +1422,15 @@ function autoload_formats($class_name)
1422
1422
{
1423
1423
$ class_name = strtolower ($ class_name );
1424
1424
$ file = RESTLER_PATH . "/ $ class_name/ $ class_name.php " ;
1425
- if (file_exists ($ file )) {
1426
- require_once ($ file );
1427
- } else if (file_exists ("$ class_name.php " )) {
1428
- require_once ("$ class_name.php " );
1425
+ if (file_exists ($ file )) {
1426
+ require_once ($ file );
1427
+ } else {
1428
+ $ file = RESTLER_PATH . "/ $ class_name.php " ;
1429
+ if (file_exists ($ file )) {
1430
+ require_once ($ file );
1431
+ } elseif (file_exists ("$ class_name.php " )) {
1432
+ require_once ("$ class_name.php " );
1433
+ }
1429
1434
}
1430
1435
}
1431
1436
You can’t perform that action at this time.
0 commit comments