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.

Changes between Initial Version and Version 3 of Ticket #1447


Ignore:
Timestamp:
Mar 2, 2012, 10:26:44 PM (9 years ago)
Author:
laurentj
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1447

    • Property Owner set to zitoun
    • Property Status changed from new to assigned
  • Ticket #1447 – Description

    initial v3  
    11While jurl can generate https urls with specific parameter in urls.xml, it cannot force to http other actions.
    22I 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 url
    4 - http="false" => force jurl to generate a full http url
    5 - no parameter (=null) => common use, generate relative urls
     3   * 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
    66
    77
    88List of files updated to support the patch:
    99
    10 1/ jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php
     10  * jelix/plugins/urls/significant/jSignificantUrlsCompiler.class.php
    1111method compile():
     12{{{
    1213$this->defaultUrl = new significantUrlInfoParsing (
    1314                $type,
    1415                (string)$tag['name'],
    1516                (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)
    1718            );
     19}}}
    1820
    19 2/ jelix/plugins/urls/significant/significants.urls.php
     21  * jelix/plugins/urls/significant/significants.urls.php
    2022method create():
    21 
     23{{{
    2224        if ($urlinfo[2])
    2325            $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}}