Let's use the right files, plus a typo

This commit is contained in:
Thomas Willingham
2013-07-10 19:46:06 +01:00
parent 3f2829a062
commit 6b85e063e8
3 changed files with 31 additions and 282 deletions

30
mod/webpages.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
function webpages_content(&$a) {
$r = q("select * from item_id");
//print "<br /> <br /> <br /> <br />";
//foreach ($r as $rr) {
//print '<a href="editwebpage/' . ($rr['iid']) .'">Edit</a>' . '&nbsp' . ($rr['sid']) . '<br />';
//}
$pages = null;
if($r) {
$pages = array();
foreach($r as $rr) {
$pages[$rr['iid']][] = array('url' => $rr['iid'],'title' => $rr['sid']);
}
}
logger('mod_profile: things: ' . print_r($pages,true), LOGGER_DATA);
return replace_macros(get_markup_template("webpageslist.tpl"), array(
'$webpages' => $webpages
));
}
return;
}