MDL-15534 wiki special pages heading title. Apply ewiki_t() to get translated heading names

This commit is contained in:
stronk7
2009-05-10 15:27:34 +00:00
parent eb1b491181
commit 61ac3a70dd
5 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -1065,20 +1065,20 @@ function ewiki_page_ordered_list($orderby="created", $asc=0, $print, $title) {
function ewiki_page_newest($id=0, $data=0) {
function ewiki_page_newest($id=0, $data=0) {
return( ewiki_page_ordered_list("created", 1, "LASTCHANGED", ewiki_t(EWIKI_PAGE_NEWEST)) );
}
function ewiki_page_updates($id=0, $data=0) {
function ewiki_page_updates($id=0, $data=0) {
return( ewiki_page_ordered_list("lastmodified", -1, "LASTCHANGED", ewiki_t(EWIKI_PAGE_UPDATES)) );
}
function ewiki_page_hits($id=0, $data=0) {
##### BEGIN MOODLE ADDITION #####
##### BEGIN MOODLE ADDITION #####
return( ewiki_page_ordered_list("hits", 1, "hits", ewiki_t(EWIKI_PAGE_HITS)) );
}
function ewiki_page_versions($id=0, $data=0) {
function ewiki_page_versions($id=0, $data=0) {
return( ewiki_page_ordered_list("version", -1, "changes", ewiki_t(EWIKI_PAGE_VERSIONS)) );
##### END MOODLE ADDITION #####
}
@@ -63,7 +63,7 @@ function moodle_ewiki_page_wiki_dump($id=0, $data=0, $action=0) {
}
$url = ewiki_script("", "WikiExport");
$ret = ewiki_make_title($id, $id, 2);
$ret = ewiki_make_title($id, ewiki_t($id), 2);
$ret .= ($cont&&$cont!==true)?$cont."<br /><br />\n":"";
$ret .= get_string("wikiexportcomment","wiki");
// removing name="form" from the following form as it does not validate
+1 -1
View File
@@ -36,7 +36,7 @@ function ewiki_page_sitemap($id=0, $data=0, $action=0){
//creates the title bar on top of page
if($id == EWIKI_PAGE_SITEMAP){
$o = ewiki_make_title($id, $id, 2);
$o = ewiki_make_title($id, ewiki_t($id), 2);
foreach($ewiki_config["SiteMap"]["RootList"] as $root){
if(isset($a_validpages[$root])){
@@ -12,7 +12,7 @@ function ewiki_page_orphanedpages($id, $data, $action) {
global $ewiki_links;
$o = ewiki_make_title($id, $id, 2);
$o = ewiki_make_title($id, ewiki_t($id), 2);
$pages = array();
$refs = array();
@@ -59,4 +59,4 @@ function ewiki_page_orphanedpages($id, $data, $action) {
}
?>
?>
+2 -2
View File
@@ -12,7 +12,7 @@ function ewiki_page_index($id=0, $data=0, $action=0, $args=array()) {
global $ewiki_plugins;
$o = ewiki_make_title($id, $id, 2);
$o = ewiki_make_title($id, ewiki_t($id), 2);
$sorted = array();
$sorted = array_merge($sorted, array_keys($ewiki_plugins["page"]));
@@ -41,4 +41,4 @@ function ewiki_page_index($id=0, $data=0, $action=0, $args=array()) {
}
?>
?>