Changeset 1206

Show
Ignore:
Timestamp:
08/07/2008 08:24:55 AM (2 years ago)
Author:
NilsLindenberg
Message:

refs #784: fixing use of list leading to a notice

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.1.6.6/formatters/wakka.php

    r1161 r1206  
    312312                else if (preg_match("/^\[\[(\S*)(\s+(.+))?\]\]$/s", $thing, $matches))          # recognize forced links across lines 
    313313                { 
    314                         list (, $url, , $text) = $matches; 
    315                         if ($url) 
     314                        if (isset($matches[1])) // url? 
    316315                        { 
    317316                                //if ($url!=($url=(preg_replace("/@@|&pound;&pound;||\[\[/","",$url))))$result="</span>"; 
    318                                 if (!$text) $text = $url; 
     317                                $text = ''; 
     318                                $url = $matches[1]; 
     319                                if (isset($matches[3])) $text = $matches[3]; // forced link title 
    319320                                //$text=preg_replace("/@@|&pound;&pound;|\[\[/","",$text); 
    320321                                return $result.$wakka->Link($url, "", $text);