pluf2

pluf2 Commit Details


Date:2009-01-03 15:19:41 (15 years 11 months ago)
Author:Loic d'Anterroches
Branch:master
Commit:69b8ecde7f6bcec55666cf488c34126a93c6e693
Parents: 5bd706559eb5989c50209a2c535b3c11bc905163
Message:Fixed to pass the request object as reference.

The preconditions can now modify the request object. This was not
working with all the PHP versions.
Changes:

File differences

src/Pluf/Dispatcher.php
109109
110110
111111
112
112
113
114
115
113116
114
115
117
118
119
120
121
116122
117123
118124
}
foreach ($preconds as $precond) {
if (!is_array($precond)) {
$res = call_user_func(explode('::', $precond), $req);
$res = call_user_func_array(
explode('::', $precond),
array(&$req)
);
} else {
$res = call_user_func(explode('::', $precond[0]),
$req, array_slice($precond, 1));
$res = call_user_func_array(
explode('::', $precond[0]),
array_merge(array(&$req),
array_slice($precond, 1))
);
}
if ($res !== true) {
return $res;

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.06080s using 13 queries.