Last change
on this file since 42937 was
42937,
checked in by marcimat@…, 10 years ago
|
Suivre les évolutions du trac de SPIP (+ mis à jour du fichier d'option)
|
File size:
850 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | // glossaire_trac est present aussi dans l'extension "code" du plugin porte plume. |
---|
4 | |
---|
5 | /* |
---|
6 | * Un raccourci pour des chemins vers de trac |
---|
7 | * [?ecrire/inc_version.php#trac] |
---|
8 | * [?ecrire/inc_version.php#tracNNN] // NNN = numero de ligne |
---|
9 | * |
---|
10 | */ |
---|
11 | if (!function_exists('glossaire_trac')) { |
---|
12 | function glossaire_trac($texte, $id=0) { |
---|
13 | // si @file@ present dans le define, on remplace par le texte |
---|
14 | if (false !== strpos(_URL_BROWSER_TRAC, '@file@')) { |
---|
15 | return str_replace('@file@', $texte, _URL_BROWSER_TRAC) . ($id ? '#L'.$id : ''); |
---|
16 | } |
---|
17 | |
---|
18 | // sinon, on met bout a bout... |
---|
19 | return _URL_BROWSER_TRAC . $texte . ($id ? '#L'.$id : ''); |
---|
20 | } |
---|
21 | } |
---|
22 | |
---|
23 | /* |
---|
24 | * Un raccourci pour des chemins vers de trac |
---|
25 | * [?recuperer_fond#doc] |
---|
26 | * |
---|
27 | */ |
---|
28 | if (!function_exists('glossaire_doc')) { |
---|
29 | function glossaire_doc($texte, $id=0) { |
---|
30 | return _URL_DOC_SPIP . '@'.$texte; |
---|
31 | } |
---|
32 | } |
---|
33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.