Update of /cvsroot/php-blog/serendipity/plugins/serendipity_event_searchhighlight
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27423
Modified Files:
serendipity_event_searchhighlight.php
Log Message:
Fix broken preg patterns and undefined constants
Index: serendipity_event_searchhighlight.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/plugins/serendipity_event_searchhighlight/serendipity_event_searchhighlight.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- serendipity_event_searchhighlight.php 28 Aug 2004 15:35:46 -0000 1.2
+++ serendipity_event_searchhighlight.php 28 Aug 2004 15:52:42 -0000 1.3
@@ -74,6 +74,8 @@
define('PLUGIN_EVENT_SEARCHHIGHLIGHT_LYCOS', 3);
define('PLUGIN_EVENT_SEARCHHIGHLIGHT_MSN', 4);
define('PLUGIN_EVENT_SEARCHHIGHLIGHT_ALTAVISTA', 5);
+ define('PLUGIN_EVENT_SEARCHHIGHLIGHT_AOL_DE', 6);
+ define('PLUGIN_EVENT_SEARCHHIGHLIGHT_AOL_COM', 7);
}
function getSearchEngine() {
@@ -95,10 +97,10 @@
if ( preg_match('@^(www\.)?altavista\.@i', $url['host']) ) {
return PLUGIN_EVENT_SEARCHHIGHLIGHT_ALTAVISTA;
}
- if ( preg_match('@^(suche\.)?aol\.de', $url['host']) ) {
+ if ( preg_match('@^(suche\.)?aol\.de@i', $url['host']) ) {
return PLUGIN_EVENT_SEARCHHIGHLIGHT_AOL_DE;
}
- if ( preg_match('@^(search\.)?aol\.com', $url['host']) ) {
+ if ( preg_match('@^(search\.)?aol\.com@i', $url['host']) ) {
return PLUGIN_EVENT_SEARCHHIGHLIGHT_AOL_COM;
}
|