[Phpmyadmin-devel] Piotr's tree: suggestion

Piotr Przybylski piotr.prz at gmail.com
Thu Jul 22 17:09:45 CEST 2010


W dniu 22 lipca 2010 15:14 użytkownik Marc Delisle <marc at infomarc.info> napisał:
> Piotr Przybylski a écrit :
>>
>> I added a new Developer tab with four options: Error_Handler display
>> and gather, DBG php and sql. Tab is hidden if none of those options is
>> settable by the user (by default all are disabled in
>> config.default.php).
>>
>> Please modify demo server's config.inc.php to enable this tab and
>> disable something other:
>> $cfg['UserprefsDisallow'] = array('LeftFrameLight'); // or any other
>> setting(s), so that some disabled setting is actually visible there
>>
> Piotr,
> with this in my config.inc.php
> $cfg['UserprefsDisallow'] = array(
>        'Error_Handler/gather');
>
> I see the Features/Developer tab, this is OK. However when I am in the
> user prefs pages, notices are always displayed (it's like "display
> errors" is always true in these pages.

My debug code, I just commited code with it removed.

> Also I don't understand your reference to array_merge() in
> config.default.php. I believe someone would just list which prefs he
> wants to disallow, in config.inc.php, in a neat list of array elements,
> right?

I want to make sure that if any option gets added there in
config.default.php, user's config.inc.php will remain valid.

Another solution I can think of is to add a new config option, which
would allow to enable Developer tab without using UserprefsDisallow.
Should I do that?

-- 
Piotr Przybylski




More information about the Developers mailing list