@@ -34,7 +34,7 @@ |
||
| 34 | 34 | echo "$title \n"; |
| 35 | 35 | |
| 36 | 36 | $pageAction = new WikiPageAction($wiki, $title); |
| 37 | - if($pageAction->getNs() !== 0 ) { |
|
| 37 | + if ($pageAction->getNs() !== 0) { |
|
| 38 | 38 | throw new \Exception("La page n'est pas dans Main (ns!==0)"); |
| 39 | 39 | } |
| 40 | 40 | $text = $pageAction->getText(); |
@@ -156,14 +156,14 @@ |
||
| 156 | 156 | $dat = []; |
| 157 | 157 | // keep only a few parameters (+'q' ?) |
| 158 | 158 | // q : keywords search / dq : quoted phrase search |
| 159 | - $keeps = ['id', 'pg', 'printsec', 'q','dq']; |
|
| 159 | + $keeps = ['id', 'pg', 'printsec', 'q', 'dq']; |
|
| 160 | 160 | foreach ($keeps as $keep) { |
| 161 | 161 | if (!empty($gooDat[$keep])) { |
| 162 | 162 | $dat[$keep] = $gooDat[$keep]; |
| 163 | 163 | } |
| 164 | 164 | } |
| 165 | 165 | // gestion doublon inutile q= dq= car q= prévaut pour affichage |
| 166 | - if(isset($dat['q']) && isset($dat['dq'])) { |
|
| 166 | + if (isset($dat['q']) && isset($dat['dq'])) { |
|
| 167 | 167 | unset($dat['dq']); |
| 168 | 168 | } |
| 169 | 169 | |