Re: Using Short URL's
Artem <[email protected]>
| Newsgroups | gmane.comp.cms.xaraya.knowledge-base |
|---|---|
| Message-ID | <[email protected]> |
Almer wrote:
>>I've tried to do step 1 but after page is reload box 'Enable Short URL
>>Support:' still unselected. In the field 'xar_value' (table
>>'xar_config_vars') for 'Site.Core.EnableShortURLsSupport' = 'N;'.
Mike wrote:
m> So the value should be b:1; (binary) or i:1; (integer) or s:1:"1"; (string)
m> or anything else that evaluates to "true".
m> The checkbox will then be selected (and short URLs work), but if
m> you update the base config again later, the value will be NULL again
m> - definitely a bug.
There is solution:
in /modules/base/xarinit.php:
WAS:
185: xarConfigSetVar('Site.Core.EnableShortURLsSupport', false);
Just remove space before 'false);'
in /modules/base/xaradmin.php:
WAS:
137: if (!xarVarFetch('shorturl','checkbox',$enableSHORTURLs,false,XARVAR_NOT_REQUIRED)) return;
SHOULD BE:
137: if (!xarVarFetch('shorturl','checkbox',$enableShortURLs,0,XARVAR_NOT_REQUIRED)) $enableShortURLs=0;
Same bug for LoadLegacy. Solution:
in /modules/base/xarinit.php:
WAS:
175: xarConfigSetVar('System.Core.LoadLegacy', true);
Just remove space before 'true);'
in /modules/base/xaradmin.php:
WAS:
144: if (!xarVarFetch('loadlegacy','checkbox',$loadlLegacy,true,XARVAR_NOT_REQUIRED)) return;
SHOULD BE:
144: if (!xarVarFetch('loadlegacy','checkbox',$loadLegacy,0,XARVAR_NOT_REQUIRED)) $loadlLegacy=0;
Should I post it to bugtracker?
--
Best regards,
Artem mailto:[email protected]