| Index: trunk/extensions/CentralAuth/CentralAuthHooks.php |
| — | — | @@ -134,7 +134,7 @@ |
| 135 | 135 | $url .= "?$querystring"; |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | | - $inject_html .= Xml::element( 'img', |
| | 138 | + $icon = Xml::element( 'img', |
| 139 | 139 | array( |
| 140 | 140 | 'src' => $url, |
| 141 | 141 | 'alt' => $alt, |
| — | — | @@ -143,6 +143,12 @@ |
| 144 | 144 | 'height' => 20, |
| 145 | 145 | 'style' => 'border: 1px solid #ccc;', |
| 146 | 146 | ) ); |
| | 147 | + |
| | 148 | + $inject_html .= Xml::tags( 'a', |
| | 149 | + array( |
| | 150 | + 'href' => $wiki->getUrl(''), |
| | 151 | + 'title' => $alt, |
| | 152 | + ), $icon ); |
| 147 | 153 | } |
| 148 | 154 | |
| 149 | 155 | $inject_html .= '</p></div>'; |
| — | — | @@ -261,7 +267,7 @@ |
| 262 | 268 | $url .= "?logout=1&token=$loginToken"; |
| 263 | 269 | } |
| 264 | 270 | |
| 265 | | - $inject_html .= Xml::element( 'img', |
| | 271 | + $icon = Xml::element( 'img', |
| 266 | 272 | array( |
| 267 | 273 | 'src' => $url, |
| 268 | 274 | 'alt' => $alt, |
| — | — | @@ -270,6 +276,12 @@ |
| 271 | 277 | 'height' => 20, |
| 272 | 278 | 'style' => 'border: 1px solid #ccc;', |
| 273 | 279 | ) ); |
| | 280 | + |
| | 281 | + $inject_html .= Xml::tags( 'a', |
| | 282 | + array( |
| | 283 | + 'href' => $wiki->getUrl(''), |
| | 284 | + 'title' => $alt, |
| | 285 | + ), $icon ); |
| 274 | 286 | } |
| 275 | 287 | |
| 276 | 288 | $inject_html .= '</p></div>'; |