Changeset 81321 in spip-zone


Ignore:
Timestamp:
Mar 13, 2014, 9:31:21 AM (5 years ago)
Author:
cedric@…
Message:

Report de r81300 : reparer le if_stri automatique sur les if_str ayant des lettres

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/branches/spip-3.0/plugins/textwheel/engine/textwheel.php

    r79967 r81321  
    165165
    166166                # optimization: strpos or stripos?
    167                 if (isset($rule->strpos)) {
     167                if (isset($rule->if_str)) {
    168168                        if (strtolower($rule->if_str) !== strtoupper($rule->if_str)) {
    169169                                $rule->if_stri = $rule->if_str;
     
    257257                        return;
    258258
    259                 if (isset($rule->if_stri) AND stripos($t, $rule->if_str) === false)
     259                if (isset($rule->if_stri) AND stripos($t, $rule->if_stri) === false)
    260260                        return;
    261261
Note: See TracChangeset for help on using the changeset viewer.