@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | if ( strpos( $m[2],'aesop_' ) === 0 ) { |
| 68 | 68 | // check against the exceptions |
| 69 | 69 | if (strpos_arr($m[2],array('aesop_gallery_pop','aesop_character_carousel'))===false) { |
| 70 | - return $m[0]; |
|
| 70 | + return $m[0]; |
|
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | |
@@ -76,9 +76,9 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | /* a helper function */ |
| 78 | 78 | function strpos_arr($haystack, $needle) { |
| 79 | - if(!is_array($needle)) $needle = array($needle); |
|
| 80 | - foreach($needle as $what) { |
|
| 81 | - if(($pos = strpos($haystack, $what))!==false) return $pos; |
|
| 82 | - } |
|
| 83 | - return false; |
|
| 79 | + if(!is_array($needle)) $needle = array($needle); |
|
| 80 | + foreach($needle as $what) { |
|
| 81 | + if(($pos = strpos($haystack, $what))!==false) return $pos; |
|
| 82 | + } |
|
| 83 | + return false; |
|
| 84 | 84 | } |
| 85 | 85 | \ No newline at end of file |