[Koha-patches] [PATCH] C4::Context::userenv reloaded

Mason James mason.loves.sushi at gmail.com
Wed Jan 7 07:05:29 CET 2009


>
> no active user. Perhaps you forgot to load C4::Auth and use
> get_template_and_user at /home/gmc/koha/dev/C4/Context.pm line 892.
>
>> +    $context->preference('insecure') and return {qw(
>> +       flags 16382
>> +       branchname Insecure
>> +       number 0
>> +       cardnumber 0
>> +       id Insecure
>> +       branch INS
>> +       emailaddress test at mode.insecure.com
>> +    )};
>> +    die "no userenv without insecure mode";
>
> If you resubmit, please also make the hashref literal look like it
> actually contains a hash, not an array, i.e., I consider this more
> readable:
>
> ... and return {
>     flags => 16382,
>     branchname => 'Insecure',
>     # etc.
> }

agreed, this cryptic hashref confused me too

ive never seen such a thing



More information about the Koha-patches mailing list