Ignore:
Timestamp:
08/25/08 18:49:18 (4 years ago)
Author:
hverton
Message:

Merged trunk revisions 1668:1690 into the PLi-Fusion branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PLi-Fusion/includes/core_functions.php

    r1666 r1691  
    695695    // quote     & code blocks 
    696696    $text = preg_replace('#\[quote=([\r\n]*)(.*?)\]#si', '<b>\2 '.$locale['199'].':</b><br />[quote]', $text); 
    697     $qcount = substr_count($text, "[quote]"); $ccount = substr_count($text, "[code]"); 
     697    $qcount = substr_count(strtolower($text), "[quote]"); $ccount = substr_count(strtolower($text), "[code]"); 
    698698    for ($i=0;$i < $qcount;$i++) $text = preg_replace('#\[quote\](.*?)\[/quote\]#si', '<div class=\'quote\'>\1</div>', $text); 
    699699    for ($i=0;$i < $ccount;$i++) $text = preg_replace('#\[code\](.*?)\[/code\]#si', '<b>code:</b><div class=\'codeblock\'>\1</div>', $text); 
Note: See TracChangeset for help on using the changeset viewer.