Changeset 291


Ignore:
Timestamp:
08/05/05 10:05:43 (14 years ago)
Author:
niko
Message:

fixed bug and some changes for changeset:290

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contrib/lc_parse_strings.php

    r288 r291  
    11<?php 
    2 die("this script is disabled for security"); 
     2//die("this script is disabled for security"); 
    33 
    44/** 
     
    4040        $ret[] = $i; 
    4141    } 
    42     if($file=="htmlarea.js") { 
     42 
     43    if(eregi('htmlarea\\.js$', $file)) { 
    4344        //toolbar-buttons 
    4445        //bold:          [ "Bold" 
    4546        preg_match_all('#[a-z]+: *\[ * "([^"]+)"#', $data, $m); 
     47        foreach($m[1] as $i) { 
     48            if(trim($i)=="") continue; 
     49            $ret[] = $i; 
     50        } 
     51 
     52        //HTMLArea._lc({key: 'button_bold', string 
     53        preg_match_all('#HTMLArea\\._lc\\({key: \'([^\']*)\'#', $data, $m); 
    4654        foreach($m[1] as $i) { 
    4755            if(trim($i)=="") continue; 
Note: See TracChangeset for help on using the changeset viewer.