Index: trunk/extensions/Cite/Cite.php |
— | — | @@ -289,14 +289,18 @@ |
290 | 290 | $this->mRefs[$key]['count'], |
291 | 291 | $this->mRefs[$key]['number'] |
292 | 292 | ); |
293 | | - } else |
| 293 | + } else { |
294 | 294 | // We've been here before |
| 295 | + if ( empty($this->mRefs[$key]['text']) and !empty($str)) { |
| 296 | + // If no text found before, use this text |
| 297 | + $this->mRefs[$key]['text'] = $str; |
| 298 | + }; |
295 | 299 | return |
296 | 300 | $this->linkRef( |
297 | 301 | $key, |
298 | 302 | ++$this->mRefs[$key]['count'], |
299 | 303 | $this->mRefs[$key]['number'] |
300 | | - ); |
| 304 | + ); } |
301 | 305 | else |
302 | 306 | $this->croak( CITE_ERROR_STACK_INVALID_INPUT, serialize( array( $key, $str ) ) ); |
303 | 307 | } |