Wikimedia España
/
limesurvey
/
AuthWMESbyDB
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8f480b
)
Set default prefix to wp_
author
Denis Chenu
<courriel@shnoulle.net>
Fri, 4 Apr 2014 15:40:03 +0000
(17:40 +0200)
committer
Denis Chenu
<courriel@shnoulle.net>
Fri, 4 Apr 2014 15:40:03 +0000
(17:40 +0200)
If LimeSurvey and WordPress are on the same database , this work without configuration
AuthWPbyDB.php
patch
|
blob
|
blame
|
history
diff --git
a/AuthWPbyDB.php
b/AuthWPbyDB.php
index 66c94c1ea5cec70745657502d00b4356609e84ff..b02841e61522a9956176de3919d9680af181b9aa 100644
(file)
--- a/
AuthWPbyDB.php
+++ b/
AuthWPbyDB.php
@@
-249,6
+249,9
@@
class AuthWPbyDB extends AuthPluginBase
$sWpDbUser = $this->get('authwp_dbuser');
$sWpDbPassword = $this->get('authwp_dbpassword');
$sWpDbPrefix = $this->get('authwp_dbprefix');
+ if(is_null($sWpDbPrefix)){
+ $sWpDbPrefix='wp_';
+ }
$sWpDbCharset = "utf8";
if($sWpDbHost || $sWpDbPort || $sWpDbName){
if(!$sWpDbPort)