Apinc:Wiki
Liste des modifications effectuées sur le code source du wiki
- Application du patch pour rajouter les liens XEP exemple : (XEP 45):
diff -ur ../../w/includes/Parser.php ./includes/Parser.php --- ../../w/includes/Parser.php 2007-01-10 21:38:09.000000000 +0100 +++ ./includes/Parser.php 2007-01-21 17:33:42.000000000 +0100 @@ -1045,7 +1045,7 @@ '!(?: # Start cases <a.*?</a> | # Skip link text <.*?> | # Skip stuff inside HTML elements - (?:RFC|PMID)\s+([0-9]+) | # RFC or PMID, capture number as m[1] + (?:RFC|PMID|XEP)\s+([0-9]+) | # RFC or PMID, capture number as m[1] ISBN\s+(\b # ISBN, capture number as m[2] (?: 97[89] [\ \-]? )? # optional 13-digit ISBN prefix (?: [0-9] [\ \-]? ){9} # 9 digits with opt. delimiters @@ -1080,6 +1080,10 @@ $keyword = 'PMID'; $urlmsg = 'pubmedurl'; $id = $m[1]; + } elseif ( substr( $m[0], 0, 3 ) == 'XEP' ) { + $keyword = 'XEP'; + $urlmsg = 'xepurl'; + $id = sprintf("%04s",$m[1]); } else { throw new MWException( __METHOD__.': unrecognised match type "' . substr($m[0], 0, 20 ) . '"' );
diff -ur ../../w/languages/messages/MessagesEn.php ./languages/messages/MessagesEn.php --- ../../w/languages/messages/MessagesEn.php 2007-01-10 21:38:37.000000000 +0100 +++ ./languages/messages/MessagesEn.php 2007-01-21 17:20:45.000000000 +0100 @@ -1544,6 +1544,7 @@ 'isbn' => 'ISBN', 'rfcurl' => 'http://www.ietf.org/rfc/rfc$1.txt', +'xepurl' => 'http://www.xmpp.org/extensions/xep-$1.html', 'pubmedurl' => 'http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=$1', 'alphaindexline' => "$1 to $2", 'version' => 'Version',
- Desactivation des miniatures avec ImageMagick (utilise gd) :
dans LocalSettings.php :
$wgUseImageMagick = false; (au lieu de true) ligne 73
- URL jolie
Contenu du .htaccess :
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?title=$1 [L,QSA]
Modification du fichier LocalSettings.php
:
$wgArticlePath = '/$1';
à la place du wgArticlePath normal.
- Installation des ParseurFunctions
- Installation de l'extension Cite