2 issues with AllPages plugin:
- When a page with an empty name exists in the db, the AllPages plugin returns
no result. This is due WikiDB_PageIterator next function that returns when
it finds an empty pagename. Not sure why a pagename would be empty, but it
is possible, as it happened in my installation. The patch excludes by
default the empty pagename from the results of the plugin (incidentally, it
also fixes an issue in ADODB whereby excluding pages from a query was
creating an incorrect sql query).
- The count returned by AllPages is incorrect as it takes the value
of a previous numPages call, which only counts non-empty pages (join with
nonempty). The patch clears the count before the query for all the pages
The patch also tidies PageList a bit, replacing tab with spaces, and removing
commented out code.