fix diff feature when used with postgresql

bump pkgname

ok mbalmer@
This commit is contained in:
winiger 2007-12-19 10:29:49 +00:00
parent 9e6fe49b27
commit 6419f09a4a
2 changed files with 19 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.15 2007/11/04 16:42:46 rui Exp $
# $OpenBSD: Makefile,v 1.16 2007/12/19 10:29:49 winiger Exp $
COMMENT= web-based collaborative editing environment
DISTNAME= mediawiki-1.11.0
PKGNAME= ${DISTNAME}p0
CATEGORIES= www
HOMEPAGE= http://www.mediawiki.org/

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-includes_DifferenceEngine_php,v 1.1 2007/12/19 10:29:49 winiger Exp $
--- includes/DifferenceEngine.php.orig Wed Dec 19 10:32:01 2007
+++ includes/DifferenceEngine.php Wed Dec 19 10:32:50 2007
@@ -164,11 +164,12 @@ CONTROL;
$rcid = $this->mRcidMarkPatrolled;
} else {
// Look for an unpatrolled change corresponding to this diff
+ $db = wfGetDB( DB_SLAVE );
$change = RecentChange::newFromConds(
array(
// Add redundant timestamp condition so we can use the
// existing index
- 'rc_timestamp' => $this->mNewRev->getTimestamp(),
+ 'rc_timestamp' => $db->timestamp( $this->mNewRev->getTimestamp() ),
'rc_this_oldid' => $this->mNewid,
'rc_last_oldid' => $this->mOldid,
'rc_patrolled' => 0,