Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23604/include
Modified Files:
functions_comments.inc.php functions_entries.inc.php
Log Message:
no need to use strtolower
Index: functions_comments.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_comments.inc.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- functions_comments.inc.php 15 Jan 2005 16:46:48 -0000 1.11
+++ functions_comments.inc.php 17 Jan 2005 13:55:56 -0000 1.12
@@ -84,7 +84,7 @@
$and .= ' AND co.status = \'approved\'';
}
- if (strtolower($serendipity['dbType']) == 'postgres') {
+ if ($serendipity['dbType'] == 'postgres') {
$group = '';
$distinct = 'DISTINCT';
} else {
@@ -367,7 +367,7 @@
$pgsql_insert = '';
$mysql_insert = '';
- if (strtolower($serendipity['dbType']) == 'postgres') {
+ if ($serendipity['dbType'] == 'postgres') {
$pgsql_insert = 'DISTINCT ON (email)';
} else {
$mysql_insert = 'GROUP BY email';
Index: functions_entries.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_entries.inc.php,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- functions_entries.inc.php 17 Jan 2005 13:27:26 -0000 1.45
+++ functions_entries.inc.php 17 Jan 2005 13:55:56 -0000 1.46
@@ -197,7 +197,7 @@
serendipity_plugin_api::hook_event('frontend_fetchentries', $cond, array('noCache' => $noCache, 'noSticky' => $noSticky));
- if (strtolower($serendipity['dbType']) == 'postgres') {
+ if ($serendipity['dbType'] == 'postgres') {
$group = '';
$distinct = 'DISTINCT';
} else {
@@ -421,7 +421,7 @@
$limit = serendipity_db_limit_sql($limit);
$term = serendipity_db_escape_string($term);
- if (strtolower($serendipity['dbType']) == 'postgres') {
+ if ($serendipity['dbType'] == 'postgres') {
$group = '';
$distinct = 'DISTINCT';
$find_part = "(title~'$term' OR body~'$term' OR extended~'$term')";
@@ -502,7 +502,7 @@
global $serendipity;
// The unique query condition was built previously in serendipity_fetchEntries()
- if (strtolower($serendipity['dbType']) == 'sqlite') {
+ if ($serendipity['dbType'] == 'sqlite') {
$querystring = "SELECT count(e.id) {$serendipity['fullCountQuery']} GROUP BY e.id";
} else {
$querystring = "SELECT count(distinct e.id) {$serendipity['fullCountQuery']}";
@@ -511,7 +511,7 @@
$query = serendipity_db_query($querystring);
if (is_array($query) && isset($query[0])) {
- if (strtolower($serendipity['dbType']) == 'sqlite') {
+ if ($serendipity['dbType'] == 'sqlite') {
return count($query);
} else {
return $query[0][0];
|