parameter no longer makes the page displayed as being the redirect target
* (bug 22918) Feed cache keys now use $wgRenderHashAppend
* (bug 21916) Last-Modified header is now correct when outputting cached feed
+* (bug 20049) Fixed in PHP notice in search highlighter that occurs in some
+ cases
=== API changes in 1.17 ===
* (bug 22738) Allow filtering by action type on query=logevent
// add extra chars to each snippet to make snippets constant size
$extended = array();
- if( count( $snippets ) == 0){
+ if( count( $snippets ) == 0 ){
// couldn't find the target words, just show beginning of article
- $targetchars = $contextchars * $contextlines;
- $snippets[$first] = '';
- $offsets[$first] = 0;
- } else{
+ if ( array_key_exists( $first, $all ) ) {
+ $targetchars = $contextchars * $contextlines;
+ $snippets[$first] = '';
+ $offsets[$first] = 0;
+ }
+ } else {
// if begin of the article contains the whole phrase, show only that !!
if( array_key_exists($first,$snippets) && preg_match($pat1,$snippets[$first])
&& $offsets[$first] < $contextchars * 2 ){