public
Description: Git mirror of the CMS Made Simple 2.0 rewrite
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsmadesimple-2-0.git
Search Repo:
PATCH [#1012] Socket connexion on a postrgeSQL server. Use an empty 
hostname when a socket connection is used on PostgreSQL. Patch submitted 
by Laurent Almeras here: 
http://dev.cmsmadesimple.org/tracker/index.php?func=detail&aid=1012&am
p;group_id=6&atid=103

git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple/trunk@3449 
3d254a34-79dc-0310-9e5f-be208747d8a0
dittmann (author)
Wed Sep 20 01:52:12 -0700 2006
commit  de3e0b74156cda4f8a39acfefa41eee50c044fc8
tree    da539a642838e4b5f7c02717d93e993756713caa
parent  f61c1e63ccf4f7607e550f8fa7b697eaa7574957
...
71
72
73
74
 
75
76
77
...
71
72
73
 
74
75
76
77
0
@@ -71,7 +71,7 @@ if (isset($config['old_stylesheet']) && $config['old_stylesheet'] == false)
0
   }
0
   else
0
   {
0
- $db=pg_connect("host=".$config['db_hostname']." dbname=".$config['db_name']." user=".$config['db_username']." password=".$config['db_password']);
0
+ $db=pg_connect((isset($config['db_hostname']) && $config['db_hostname'] ? "host=".$config['db_hostname'] : '')." dbname=".$config['db_name']." user=".$config['db_username']." password=".$config['db_password']);
0
     if ($name != '')
0
       $sql="SELECT css_text, css_name FROM ".$config['db_prefix']."css WHERE css_name = '" . pg_escape_string($name) . "'";
0
     else

Comments

    No one has commented yet.