case "removepages":
if($form->proceed) {
if(!$confirm && $form->pagestodelete) {
- notice_yesno(get_string("removepagecheck", "wiki")."<br />".join(", ", $form->pagestodelete),
- $link."&confirm=".urlencode(join(" ",$form->pagestodelete)), $link);
+ echo $OUTPUT->confirm(get_string("removepagecheck", "wiki")."<br />".join(", ", $form->pagestodelete),
+ $link."&confirm=".urlencode(join(" ",$form->pagestodelete)), $link);
echo $OUTPUT->footer();
exit;
}
foreach($form->pagestostrip as $pagetostrip) {
$pagestostrip[]=htmlspecialchars(urldecode($pagetostrip));
}
- notice_yesno(get_string("strippagecheck", "wiki")."<br />".join(", ", $pagestostrip),
- $link.$confirm, $link);
+ echo $OUTPUT->confirm(get_string("strippagecheck", "wiki")."<br />".join(", ", $pagestostrip), $link.$confirm, $link);
echo $OUTPUT->footer();
exit;
}
if($form->proceed) {
if(!$confirm && $form->pagetocheck) {
$confirm="&confirm=".$form->pagetocheck;
- notice_yesno(get_string("checklinkscheck", "wiki").$form->pagetocheck,
- $link.$confirm, $link);
+ echo $OUTPUT->confirm(get_string("checklinkscheck", "wiki").$form->pagetocheck, $link.$confirm, $link);
echo $OUTPUT->footer();
exit;
}
"&confirm[deleteversions]=".urlencode($form->deleteversions);
$revertedpages=wiki_admin_revert("", $form->authorfieldpattern, $form->changesfield, $form->howtooperate, $form->deleteversions);
if($revertedpages) {
- notice_yesno(get_string("revertpagescheck", "wiki")."<br />".$revertedpages,
- $link.$confirm, $link);
+ echo $OUTPUT->confirm(get_string("revertpagescheck", "wiki")."<br />".$revertedpages, $link.$confirm, $link);
echo $OUTPUT->footer();
exit;
} else {
if (strlen($params)) {
$url .= (strpos($url,"?")!==false ? "&":"?") . $params;
}
-\r #-- fin
+ #-- fin
if ($html) {
//Don't replace & if it's part of encoded character (bug 2209)
$url = preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,5};)/","&", $url);
function ewiki_page_info($id, &$data, $action) {
global $ewiki_plugins, $ewiki_config, $ewiki_links;
- global $CFG, $COURSE, $DB; // MOODLE HACK
+ global $CFG, $COURSE, $DB, $OUTPUT; // MOODLE HACK
$pnum = optional_param(EWIKI_UP_PAGENUM, 0);
$pend = optional_param(EWIKI_UP_PAGEEND, 0);
if (!isset($COURSE->id)) {
$COURSE->id = SITEID;
}
- $picture = print_user_picture($user->id, $COURSE->id, $user->picture, false, true, true);
- $value = $picture." <a href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=$COURSE->id\">".fullname($user)."</a>";
+ $userpic = moodle_user_picture::make($user->id, $COURSE->id);
+ $userpic->link = true;
+ $picture = $OUTPUT->user_picture($userpic);
+ $value = $picture . $OUTPUT->link("$CFG->wwwroot/user/view.php?id=$user->id&course=$COURSE->id", fullname($user));
} else {
continue;
//$value = @$current['author'];
if (!isset($course->id)) {
$course->id = 1;
}
- $picture = print_user_picture($user->id, $course->id, $user->picture, false, true, true);
- $value = $picture." <a href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id\">".
- fullname($user)."</a>";
+ $userpic = moodle_user_picture::make($user->id, $course->id);
+ $userpic->link = true;
+ $picture = $OUTPUT->user_picture($userpic);
+ $value = $picture . $OUTPUT->link("$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id", fullname($user));
}
$o .= '<a href="'.$info->url.'">'.$info->icon.$info->title.'</a>'.$info->size.'<br />'.
$strweek = get_string('week');
$strtopic = get_string('topic');
+ $table = new html_table();
if ($course->format == "weeks") {
$table->head = array ($strweek, $strname, $strsummary, $strtype, $strlastmodified);
$table->align = array ('CENTER', 'LEFT', 'LEFT', 'LEFT', 'LEFT');
echo "<br />";
- print_table($table);
+ echo $OUTPUT->table($table);
/// Finish the page
*/
function wiki_admin_setpageflags_list($pageflagstatus) {
$FD = wiki_admin_get_flagarray();
- $table = new Object();
+ $table = new html_table();
$table->head = array(get_string("pagename","wiki"), get_string("flags","wiki"));
if($pageflagstatus) {
$table->head[]=get_string("status","wiki");
*/
function wiki_admin_remove_list($listall="") {
/// Table header
- $table = new Object();
+ $table = new html_table();
$table->head = array(" ", get_string("pagename","wiki"), get_string("errororreason","wiki"));
/// Get all pages
*/
function wiki_admin_strip_list($pagestostrip="",$version="",$err="") {
/// Table header
- $table = new Object();
+ $table = new html_table();
$table->head = array(" ", get_string("pagename","wiki"), get_string("deleteversions","wiki"));
$vc=ewiki_database("COUNTVERSIONS", array());
<input type="hidden" name="wikipage" value="<?php print $wikipage?>" />
<?php
$remove_table=wiki_admin_remove_list($form->listall);
- print_table($remove_table);
+ echo $OUTPUT->table($remove_table);
?>
<div class="boxaligncenter">
<?php
<input type="hidden" name="wikipage" value="<?php print $wikipage?>" />
<?php
$pageflags_table=wiki_admin_setpageflags_list($pageflagstatus);
- print_table($pageflags_table);
+ echo $OUTPUT->table($pageflags_table);
?>
<br />
<div class="boxaligncenter">
<input type="hidden" name="wikipage" value="<?php print $wikipage?>" />
<?php
$strip_table=wiki_admin_strip_list($form->pagestostrip, $form->version, $err);
- print_table($strip_table);
+ echo $OUTPUT->table($strip_table);
?>
<div class="boxaligncenter">
<?php
}
?>
<input type="submit" name="proceed" value="<?php print get_string("strippages","wiki"); ?>" />
-</div></fieldset></form>
\ No newline at end of file
+</div></fieldset></form>