Some changes to the link tables. They now all use a key on cur_id for the *_from...
[lhc/web/wiklou.git] / includes / ParserCache.php
index c7d934b..70b9943 100644 (file)
@@ -44,7 +44,7 @@ class ParserCache
        function clearLinksTo( $pid ){
                $pid = intval( $pid );
                wfQuery("DELETE parsercache FROM parsercache,links ".
-                       "WHERE pc_title=links.l_from AND l_to={$pid}", DB_WRITE);
+                       "WHERE pc_pageid=links.l_from AND l_to={$pid}", DB_WRITE);
                wfQuery("DELETE FROM parsercache WHERE pc_pageid='{$pid}'", DB_WRITE);
        }