Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_livesearch
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20194/plugins/serendipity_event_livesearch
Modified Files:
serendipity_event_livesearch.php
Log Message:
* fix skipping CSS emitting when already found in template
* use better performing strpos() instead of stristr()
Index: serendipity_event_livesearch.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_livesearch/serendipity_event_livesearch.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- serendipity_event_livesearch.php 19 Nov 2004 11:24:55 -0000 1.9
+++ serendipity_event_livesearch.php 20 Nov 2004 15:18:14 -0000 1.10
@@ -50,7 +50,7 @@
if (isset($hooks[$event])) {
switch($event) {
case 'css':
- if (stristr('.serendipity_livesearch_row', $addData)) {
+ if (strpos($eventData, '.serendipity_livesearch_row')) {
// class exists in CSS, so a user has customized it and we don't need default
return true;
}
@@ -166,4 +166,4 @@
}
/* vim: set sts=4 ts=4 expandtab : */
-?>
\ No newline at end of file
+?>
|