[horde] Horde 5.2.6 (final)

Frank Richter frank.richter at hrz.tu-chemnitz.de
Fri Jun 26 14:15:16 UTC 2015


Am 26.06.2015 um 15:34 schrieb Michael J Rubinsky:
>
> Quoting Frank Richter <frank.richter at hrz.tu-chemnitz.de>:
>
>> Am 25.06.2015 um 17:24 schrieb Jan Schneider:
>>>
>>> Zitat von Frank Richter <frank.richter at hrz.tu-chemnitz.de>:
>>>
>>>> Am 18.06.2015 um 12:54 schrieb Jan Schneider:
>>>>> The Horde Team is pleased to announce the final release of the Horde
>>>>> Application Framework version 5.2.6.
>>>>> [...]
>>>>> The major changes compared to the Horde version 5.2.5 are:
>>>>>   * Display Message Of The Day on mobile login screen.
>>>> Hi,
>>>> thanks for the new versions, they are working well!
>>>>
>>>> Is there an easy way to distinguish in the motd.local.php which 
>>>> information should be shown on mobile screen, on desktop screen, or both?
>>>>
>>>> Thanks,
>>>> Frank
>>>>
>>>> -- 
>>>> Frank Richter
>>>> Technische Universität Chemnitz, Germany
>>>
>>> if ($browser->isMobile() &&
>>>    (!isset($conf['user']['force_view']) ||
>>>     !in_array($conf['user']['force_view'], array('basic', 'dynamic')))) {
>>>    // Mobile
>>> } else {
>>>    // Desktop
>>> }
>>>
>>
>> $browser isn't defined ...
>>
>> 2015-06-26T14:30:47+02:00 NOTICE: HORDE [horde] PHP ERROR: Undefined 
>> variable: browser [pid 10915 on line 15 of 
>> "/var/www/html/horde/config/motd.local.php"]
>
>
> Try using $GLOBALS['browser'] and probably $GLOBALS['conf'] as well.

Thanks, $GLOBALS['browser'] works, $conf[...] is defined.
Excellent!

-- 
Frank Richter
Technische Universität Chemnitz, Germany

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5416 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.horde.org/archives/horde/attachments/20150626/0a729af3/attachment.bin>


More information about the horde mailing list