Changeset 19746 for lang/php

Show
Ignore:
Timestamp:
09/23/08 02:51:55 (2 months ago)
Author:
anatoo
Message:

bug fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/php/HatenaSyntax/trunk/HatenaSyntax.php

    r14915 r19746  
    7878  public function addFirstCharSyntax(HatenaSyntax_FirstCharSyntaxInterface $syntax) 
    7979  { 
    80     $this->firstCharSyntaxes[$syntax->getIdentifier()] =& $syntax; 
     80    $this->firstCharSyntaxes[$syntax->getIdentifier()] = $syntax; 
    8181    return $this; 
    8282  } 
    8383  public function addInlineSyntax(HatenaSyntax_InlineSyntaxInterface $syntax) 
    8484  { 
    85     $this->inlineSyntaxes[] =& $syntax; 
     85    $this->inlineSyntaxes[] = $syntax; 
    8686    return $this; 
    8787  } 
    8888  public function parseStructure($contents) 
    8989  { 
    90     $openingTags =& $this->openingTags; 
    91     $closingTags =& $this->closingTags; 
    92     $markupSyntaxes =& $this->markupSyntaxes; 
    93     $firstCharSyntaxes =& $this->firstCharSyntaxes; 
     90    $openingTags = $this->openingTags; 
     91    $closingTags = $this->closingTags; 
     92    $markupSyntaxes = $this->markupSyntaxes; 
     93    $firstCharSyntaxes = $this->firstCharSyntaxes; 
    9494     
    9595    $lines = $this->getLines($contents); 
     
    101101      // MarkupSyntaxだったら 
    102102      if(isset($openingTags[$lines[$i]])) { 
    103         $block['syntax'] =& $markupSyntaxes[$lines[$i]]; 
     103        $block['syntax'] = $markupSyntaxes[$lines[$i]]; 
    104104        $block['type'] = 'markup'; 
    105105         
     
    113113        $firstChar = $this->getFirstCharSyntaxIdentifier($lines[$i]); 
    114114         
    115         $block['syntax'] =& $firstCharSyntaxes[$firstChar]; 
     115        $block['syntax'] = $firstCharSyntaxes[$firstChar]; 
    116116        $block['type'] = 'firstchar'; 
    117117         
     
    300300      $id = $this->id; 
    301301      $line = $result[0]  
    302             . '(<a href="#f' . $num . $id . '" name ="#b' . $num  . $id  
     302            . '(<a href="#f' . $num . $id . '" name ="b' . $num  . $id  
    303303            .'" title="' . $result[1] . '">*' . $num . '</a>)' . $result[2] . PHP_EOL; 
    304304    } 
     
    334334     
    335335    foreach($footnotes as $num => $note) 
    336       $result .= '<p><a href="#b' . ++$num  . $id . '" name="#f' . $num  . $id . '">*' . $num  
     336      $result .= '<p><a href="#b' . ++$num  . $id . '" name="f' . $num  . $id . '">*' . $num  
    337337              . '</a>: ' . $note . '</p>' .  PHP_EOL; 
    338338