diff options
author | Ammarpad <ammarpad@yahoo.com> | 2021-01-04 07:50:04 +0100 |
---|---|---|
committer | DannyS712 <DannyS712.enwiki@gmail.com> | 2021-01-04 07:47:14 +0000 |
commit | 0a4cd7c67170574c839676a4b173658361c9f20d (patch) | |
tree | fb8e8e518535e31dbf3771cc2dc67c1d1cf3aa1d /includes/Hook | |
parent | 7d0678389a9d3eccb223964c60ed3ebecf74e422 (diff) | |
download | mediawikicore-0a4cd7c67170574c839676a4b173658361c9f20d.tar.gz mediawikicore-0a4cd7c67170574c839676a4b173658361c9f20d.zip |
Restore use of func_get_args() in getCacheSetOptions()
The documentation says this can be used "for several DBs" but
because there are only two real paramaters and the gotcha explained
at I7d4804a, I unintentionally limited it to work for "only two"
databases while fixing a different issue.
I am not sure wether there are callers calling with 5, 10 or 20
database objects, but PHP will never raise any warning even if
there are, the remaining args will just be silently discarded.
This restores the behavior so it can work "for several DBs", as
it used to.
Follow-up: I7d4804a715063d95827fcec6d14a3ae059b234c3
Change-Id: Id837e813cda19b86dcd14ec36b520f8465e5855d
Diffstat (limited to 'includes/Hook')
0 files changed, 0 insertions, 0 deletions