[horde] Horde 5.2.6 (final)
Michael J Rubinsky
mrubinsk at horde.org
Fri Jun 26 13:34:51 UTC 2015
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.
--
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5869 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/horde/attachments/20150626/08210682/attachment.bin>
More information about the horde
mailing list