Diff for Metafox/admin/inc-db/triggers/word-count.trigger between version 1.1 and 1.2
| version 1.1, 2005/06/10 15:22:53 |
version 1.2, 2009/10/14 14:24:26 |
|
|
| <?php |
<?php |
| |
|
| foreach (array('hometext', 'bodytext', 'text', 'description') as $type) { |
foreach (array('ghometext', 'hometext', 'bodytext', 'text', 'description') as $type) { |
| if (in_array($type, $changed)) { |
if (in_array($type, $changed)) { |
| $newvals[$type.'_wordcount'] = str_word_count($newvals[$type]); |
$newvals[$type.'_wordcount'] = str_word_count($newvals[$type]); |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|