projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into account
[platal.git]
/
include
/
common.inc.php
diff --git
a/include/common.inc.php
b/include/common.inc.php
index
35296b4
..
54802e7
100644
(file)
--- a/
include/common.inc.php
+++ b/
include/common.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
8
Polytechnique.org *
+ * Copyright (C) 2003-200
9
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-23,7
+23,10
@@
function __autoload($cls)
{
if (!pl_autoload($cls)) {
$cls = strtolower($cls);
{
if (!pl_autoload($cls)) {
$cls = strtolower($cls);
- if (substr($cls, -3, 3) == 'req') {
+ if (substr($cls, 0, 4) == 'ufc_' || substr($cls, 0, 4) == 'ufo_') {
+ __autoload('userfilter');
+ return;
+ } else if (substr($cls, -3, 3) == 'req') {
@include 'validations.inc.php';
return;
} else if (substr($cls, 0, 6) == 'banana') {
@include 'validations.inc.php';
return;
} else if (substr($cls, 0, 6) == 'banana') {