Agreed. It's been brought up before. Please search the forum if there is already an RFC/topic dedicated to this. If not (maybe we only discussed it on IRC), you should make an RFC.leschek wrote:I would like to ask if there is reason why "Extension management" is not on the top of "Customise" tab in ACP? While I'm not 100% sure I think users use it more often than "Style management".
[RFC|Merged] Extensions
Re: [RFC|Merged] Extensions
Re: [RFC|Merged] Extensions
+1
Just to mention that you can put it on top:
ACP=>SYSTEM(tab)=>(Module Management) Administration Control Panel =>Customise and then click the UP arrow.
Just to mention that you can put it on top:
ACP=>SYSTEM(tab)=>(Module Management) Administration Control Panel =>Customise and then click the UP arrow.
- Volksdevil
- Registered User
- Posts: 84
- Joined: Tue Sep 04, 2012 2:17 pm
- Contact:
Re: [RFC|Merged] Extensions
+1 Much better.
Superb hosting with Kualo!
My Volkswagen Corrado G60 | Car Wheels Classifieds UK
Vw Corrado G60 Forum | Vw Corrado G60 History | Vw Corrado G60 Buyers Guide
My Volkswagen Corrado G60 | Car Wheels Classifieds UK
Vw Corrado G60 Forum | Vw Corrado G60 History | Vw Corrado G60 Buyers Guide
- AmigoJack
- Registered User
- Posts: 110
- Joined: Wed May 04, 2011 7:47 pm
- Location: グリーン ヒル ゾーン
- Contact:
Re: [RFC|Merged] Extensions
Code: Select all
extract($phpbb_dispatcher->trigger_event('core.viewforum_get_topic_data', compact($vars)));
extract()
is slower than i.e.foreach() $$var= $value
extract()
might fail when incorrect data is passed. Documentation comments say it fails for everything, including data which might be processed/parsed correctly.compact()
creates variable copies - why not directly using references? That would also kill the need ofextract()
- Both functions are always called (including all the work they do), even if they're not needed at all (no event matches to be triggered). Why not having an implementation where an
if
first checks for trigger matches and only after that all the extract/compact work is done? Considering how many times event trigger checks are encountered (and will surely increase in future releases) this is a questionable waste of overhead.
Code: Select all
// Checking before executing code which is never needed
if( $phpbb_dispatcher-> does_trigger_event( 'core.viewforum_get_topic_data' ) ) {
// As before: provide which variables should be accessible
$aVars= array
( 'forum_data'
, 'sql_array'
);
// Can't find an automated way which could provide this:
// compact() doesn't create references, and an own function
// would always sit beyond the scope of the variables
foreach( $aVars as $iKey=> $sName ) {
$aVars[$sName]=& $$sName;
unset( $aVars[$iKey] );
}
// The previous call to .does_trigger_event stored the event ID
$phpbb_dispatcher-> trigger_event_last_asked( $aVars );
// Nothing to do anymore: variables are touched directly
// without anyone being able to inject array keys or else
}