From 451b22f04ae4f2b6c165fc219be43951fe5dc37e Mon Sep 17 00:00:00 2001 From: dairiki Date: Sat, 18 Aug 2001 00:34:27 +0000 Subject: [PATCH] Added real back-link searches. The pgsql and msql backends are completely untested at this point, but they "should work". (I.e.: they're probably broken now.) The msql back-link search is a bit buggy, and will not find links if they are split between two records ("lines") in the page store. (The proper remedy for this is to implement the links table in the msql back end.) git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/branches/release-1_2-branch@535 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/msql.php | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/lib/msql.php b/lib/msql.php index c7537fb6f..e2e92c854 100644 --- a/lib/msql.php +++ b/lib/msql.php @@ -1,4 +1,4 @@ - + pagename ) + continue; + if ( ! preg_match($res['regexp'], $a->line) ) + continue; + $res['lastpage'] = $o->pagename; + return $o->pagename; + } + } function IncreaseHitCount($dbi, $pagename) { -- 2.45.0