| Conditions | 7 |
| Paths | 5 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | public function handleHeader(Doku_Event &$event, $param) |
||
|
|
|||
| 31 | { |
||
| 32 | global $ACT; |
||
| 33 | global $INPUT; |
||
| 34 | if ($ACT != 'admin' || $INPUT->str('page') != 'styling') return; |
||
| 35 | if (!auth_isadmin()) return; |
||
| 36 | |||
| 37 | // set preview |
||
| 38 | $len = count($event->data['link']); |
||
| 39 | for ($i = 0; $i < $len; $i++) { |
||
| 40 | if ($event->data['link'][$i]['rel'] == 'stylesheet' && |
||
| 41 | strpos($event->data['link'][$i]['href'], 'lib/exe/css.php') !== false |
||
| 42 | ) { |
||
| 43 | $event->data['link'][$i]['href'] .= '&preview=1&tseed='.time(); |
||
| 44 | } |
||
| 45 | } |
||
| 50 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.