- Fix a bug in horde-passwd.
Submitted by: Danny Carroll
This commit is contained in:
parent
c7f5ee590c
commit
1e4760dbf4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=172227
2 changed files with 16 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= horde-passwd
|
||||
PORTVERSION= 3.0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= www mail
|
||||
MASTER_SITES= ftp://ftp.horde.org/pub/passwd/ \
|
||||
ftp://ftp.planetmirror.com/pub/horde/passwd/ \
|
||||
|
@ -60,6 +60,9 @@ pre-configure:
|
|||
@${SED} -e "s:/home/httpd/html/horde/passwd:${PWDDIR}:g" \
|
||||
${FILESDIR}/httpd.conf.pwd > ${WRKDIR}/httpd-pwd.conf
|
||||
|
||||
post-patch:
|
||||
@${FIND} ${WRKSRC} -name "*.orig" -delete
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PWDDIR}
|
||||
.for REP in ${SUB_DIRS}
|
||||
|
|
12
www/horde-passwd/files/patch-lib_Driver.php
Normal file
12
www/horde-passwd/files/patch-lib_Driver.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- lib/Driver.php.orig Wed Aug 23 13:18:54 2006
|
||||
+++ lib/Driver.php Wed Aug 23 13:19:40 2006
|
||||
@@ -107,7 +107,8 @@
|
||||
require_once dirname(__FILE__) . '/Driver/' . $driver . '.php';
|
||||
$class = 'Passwd_Driver_' . $driver;
|
||||
if (class_exists($class)) {
|
||||
- return $ret = &new $class($params);
|
||||
+ $ret = &new $class($params);
|
||||
+ return $ret;
|
||||
} else {
|
||||
Horde::fatal(PEAR::raiseError(sprintf(_("No such backend \"%s\" found."), $driver)), __FILE__, __LINE__);
|
||||
}
|
Loading…
Reference in a new issue