developer.jelix.org is not used any more and exists only for
history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Changes between Initial Version and Version 3 of Ticket #1447
- Timestamp:
- Mar 2, 2012, 10:26:44 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1447
- Property Owner set to zitoun
- Property Status changed from new to assigned
-
Ticket #1447 – Description
initial v3 1 1 While jurl can generate https urls with specific parameter in urls.xml, it cannot force to http other actions. 2 2 I suggest to turn around this limitation by using the parameter in a 3-state value: 3 -https="true" => force jurl to generate a full https url4 -http="false" => force jurl to generate a full http url5 -no parameter (=null) => common use, generate relative urls3 * https="true" => force jurl to generate a full https url 4 * http="false" => force jurl to generate a full http url 5 * no parameter (=null) => common use, generate relative urls 6 6 7 7 8 8 List of files updated to support the patch: 9 9 10 1/jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php10 * jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php 11 11 method compile(): 12 {{{ 12 13 $this->defaultUrl = new significantUrlInfoParsing ( 13 14 $type, 14 15 (string)$tag['name'], 15 16 (isset($tag['default']) ? (((string)$tag['default']) == 'true'):false), 16 (isset($tag['https']) ? (((string)$tag['https']) == 'true'): '''null''')17 (isset($tag['https']) ? (((string)$tag['https']) == 'true'):null) 17 18 ); 19 }}} 18 20 19 2/jelix/plugins/urls/significant/significants.urls.php21 * jelix/plugins/urls/significant/significants.urls.php 20 22 method create(): 21 23 {{{ 22 24 if ($urlinfo[2]) 23 25 $url->scriptName = $GLOBALS['gJCoord']->request->getServerURI(true).$url->scriptName; 24 ''' else if ($urlinfo[2] === false) 25 $url->scriptName = $GLOBALS['gJCoord']->request->getServerURI(false).$url->scriptName;''' 26 else if ($urlinfo[2] === false) 27 $url->scriptName = $GLOBALS['gJCoord']->request->getServerURI(false).$url->scriptName; 28 }}