I was adding a special page (dead-end pages), and I realized that almost all
authorEvan Prodromou <evanprodromou@users.mediawiki.org>
Mon, 1 Dec 2003 16:04:35 +0000 (16:04 +0000)
committerEvan Prodromou <evanprodromou@users.mediawiki.org>
Mon, 1 Dec 2003 16:04:35 +0000 (16:04 +0000)
commitf5d4ebe686269f9c825d3881a08d966d79ad6059
treea652b42553b6fec5ca69855c1d79093468dc7a90
parent25065219b32ffcf92a64259873593e3535cee423
I was adding a special page (dead-end pages), and I realized that almost all
the special query pages were pretty much identical. I copy-and-pasted one to
make the one I was working on, and I realized that that was Wrong.

So, I took the common elements and made them into a class, QueryPage.php.
Then, I derived each of the existing special pages from QueryPage, and
overrode places where they differed. This is a Recipe pattern, btw, for
those of you following along at home.

Anyways, the upshot is that the query pages are a lot shorter, with just the
essentials that make them different from other query pages, and there's one
place to make big UI changes for all queries.
includes/QueryPage.php [new file with mode: 0644]
includes/SpecialAncientpages.php
includes/SpecialDeadendpages.php
includes/SpecialLonelypages.php
includes/SpecialLongpages.php
includes/SpecialNewpages.php
includes/SpecialPopularpages.php
includes/SpecialShortpages.php
includes/SpecialWantedpages.php