Currently most of ACP is unusable from a script due to adm_back_link calls which might be doing or require user/session setup or other interactive stuff.
The code should be rewritten to separate actual work from UI, such that the work code can be scriptable.
[RFC] Refactor adm_back_link usage
- bantu
- 3.0 Release Manager
- Posts: 557
- Joined: Thu Sep 07, 2006 11:22 am
- Location: Karlsruhe, Germany
- Contact:
Re: [RFC] Refactor adm_back_link usage
Absolutely.
Re: [RFC] Refactor adm_back_link usage
It just occurred to me that adm_back_link calls can probably be trivially replaced with exception throwing.
Re: [RFC] Refactor adm_back_link usage
Just because we're already abusing trigger_error for displaying messages to the user does not mean we should now use exceptions for the same thing. If we fix it, we should fix it properly.
Re: [RFC] Refactor adm_back_link usage
Do you mean with special return values?
Re: [RFC] Refactor adm_back_link usage
how are we about this?