Commit 884f6e6a authored by sylvieg's avatar sylvieg

[MOD]wiki: can have a list page function working on a table of initials

parent 24ec2abd
<?php
// CVS: $Id: tikilib.php,v 1.731 2007-03-16 14:59:54 pkdille Exp $
// CVS: $Id: tikilib.php,v 1.732 2007-03-20 15:39:10 sylvieg Exp $
//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
header("location: index.php");
......@@ -3445,10 +3445,23 @@ function add_pageview() {
}
}
}
if ($initial) {
$mid = " where `pageName` like ?";
$mmid = $mid;
$bindvars = array($initial.'%');
if (!empty($initial)) {
if (is_array($initial)) {
$mid = '';
foreach($initial as $i) {
if (empty($mid))
$mid = 'where ';
else
$mid .= 'or ';
$mid .= '`pageName` like ? ';
$bindvars[] = $i.'%';
}
$mmid = $mid;
} else {
$mid = " where `pageName` like ?";
$mmid = $mid;
$bindvars = array($initial.'%');
}
}
if ( $only_orphan_pages ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment