https://bugzilla.wikimedia.org/show_bug.cgi?id=25984

--- Comment #2 from Max Semenik <maxsem.w...@gmail.com> 2010-11-18 18:51:19 UTC 
---
(In reply to comment #1)
> I don't think that'd be possible, since you need db access the moment you have
> wikitext with {{some template}} in it (to retrieve template). Same with
> [[link]] (so the parser can figure out if it should be a red link or not).

You can always abstract DB access with something like

interface WikiAccess {
   function getPageText( $title );
   function getPageExistence( $title );
   function getPageProps( $title );
}

The question is what will we achieve with this, because:

$grep $wg Parser.php | wc -l
    134

This bug should be titled "Get rid of parser's external dependencies". And how
we are going to untangle it from, say, $wgContLang? It depends on a half of MW.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to