@ -96,6 +96,8 @@ class Wiki
* check wikilinks that has a page
* check wikilinks that has a page
* @author Juan Carlos Raña < herodoto @ telefonica . net >
* @author Juan Carlos Raña < herodoto @ telefonica . net >
* @param string $input
* @param string $input
*
* @return string
**/
**/
public function links_to($input)
public function links_to($input)
{
{
@ -410,7 +412,6 @@ class Wiki
];
];
Database::insert($tbl_wiki_conf, $params);
Database::insert($tbl_wiki_conf, $params);
} else {
} else {
$params = [
$params = [
'task' => $_clean['task'],
'task' => $_clean['task'],
'feedback1' => $_clean['feedback1'],
'feedback1' => $_clean['feedback1'],
@ -565,7 +566,6 @@ class Wiki
$tbl_wiki = $this->tbl_wiki;
$tbl_wiki = $this->tbl_wiki;
$tbl_wiki_conf = $this->tbl_wiki_conf;
$tbl_wiki_conf = $this->tbl_wiki_conf;
$assig_user_id = $this->assig_user_id;
$assig_user_id = $this->assig_user_id;
$_clean = array();
$_clean = array();
// cleaning the variables
// cleaning the variables
@ -682,7 +682,6 @@ class Wiki
];
];
$id = Database::insert($tbl_wiki, $params);
$id = Database::insert($tbl_wiki, $params);
if ($id > 0) {
if ($id > 0) {
$sql = "UPDATE $tbl_wiki SET id = iid WHERE iid = $id";
$sql = "UPDATE $tbl_wiki SET id = iid WHERE iid = $id";
Database::query($sql);
Database::query($sql);
@ -696,7 +695,6 @@ class Wiki
$groupId
$groupId
);
);
$sql = 'UPDATE '.$tbl_wiki.' SET page_id="'.$id.'"
$sql = 'UPDATE '.$tbl_wiki.' SET page_id="'.$id.'"
WHERE c_id = '.$course_id.' AND id = "'.$id.'"';
WHERE c_id = '.$course_id.' AND id = "'.$id.'"';
Database::query($sql);
Database::query($sql);
@ -825,6 +823,8 @@ class Wiki
$form->addElement('text', 'title', get_lang('Title'));
$form->addElement('text', 'title', get_lang('Title'));
$form->addRule('title', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('title', get_lang('ThisFieldIsRequired'), 'required');
self::setForm($form);
self::setForm($form);
$title = isset($_GET['title']) ? Security::remove_XSS($_GET['title']) : '';
$form->setDefaults(['title' => $title]);
$form->addElement('button', 'SaveWikiNew', get_lang('Save'));
$form->addElement('button', 'SaveWikiNew', get_lang('Save'));
$form->display();
$form->display();
@ -937,7 +937,6 @@ class Wiki
// if both are empty and we are displaying the index page then we display the default text.
// if both are empty and we are displaying the index page then we display the default text.
if ($row['content'] == '' & & $row['title'] == '' & & $page == 'index') {
if ($row['content'] == '' & & $row['title'] == '' & & $page == 'index') {
if (api_is_allowed_to_edit(false, true) ||
if (api_is_allowed_to_edit(false, true) ||
api_is_platform_admin() ||
api_is_platform_admin() ||
GroupManager::is_user_in_group(api_get_user_id(), $groupInfo['iid']) ||
GroupManager::is_user_in_group(api_get_user_id(), $groupInfo['iid']) ||
@ -961,15 +960,30 @@ class Wiki
//assignment mode: identify page type
//assignment mode: identify page type
$icon_assignment = null;
$icon_assignment = null;
if ($row['assignment'] == 1) {
if ($row['assignment'] == 1) {
$icon_assignment = Display::return_icon('wiki_assignment.png', get_lang('AssignmentDescExtra'),'',ICON_SIZE_SMALL);
$icon_assignment = Display::return_icon(
'wiki_assignment.png',
get_lang('AssignmentDescExtra'),
'',
ICON_SIZE_SMALL
);
} elseif ($row['assignment'] == 2) {
} elseif ($row['assignment'] == 2) {
$icon_assignment = Display::return_icon('wiki_work.png', get_lang('AssignmentWork'),'',ICON_SIZE_SMALL);
$icon_assignment = Display::return_icon(
'wiki_work.png',
get_lang('AssignmentWork'),
'',
ICON_SIZE_SMALL
);
}
}
// task mode
// task mode
$icon_task = null;
$icon_task = null;
if (!empty($row['task'])) {
if (!empty($row['task'])) {
$icon_task=Display::return_icon('wiki_task.png', get_lang('StandardTask'),'',ICON_SIZE_SMALL);
$icon_task = Display::return_icon(
'wiki_task.png',
get_lang('StandardTask'),
'',
ICON_SIZE_SMALL
);
}
}
// Show page. Show page to all users if isn't hide page. Mode assignments: if student is the author, can view
// Show page. Show page to all users if isn't hide page. Mode assignments: if student is the author, can view
@ -980,7 +994,6 @@ class Wiki
api_is_allowed_in_course()
api_is_allowed_in_course()
) {
) {
$actionsLeft = '';
$actionsLeft = '';
// menu edit page
// menu edit page
$editLink = '< a href = "index.php?'.api_get_cidreq().'&action=edit&title='.api_htmlentities(urlencode($page)).'" ' . self::is_active_navigation_tab ( ' edit ' ) . ' > '.
$editLink = '< a href = "index.php?'.api_get_cidreq().'&action=edit&title='.api_htmlentities(urlencode($page)).'" ' . self::is_active_navigation_tab ( ' edit ' ) . ' > '.
Display::return_icon('edit.png', get_lang('EditThisPage'), '', ICON_SIZE_MEDIUM).'< / a > ';
Display::return_icon('edit.png', get_lang('EditThisPage'), '', ICON_SIZE_MEDIUM).'< / a > ';
@ -1187,7 +1200,6 @@ class Wiki
$tbl_wiki = $this->tbl_wiki;
$tbl_wiki = $this->tbl_wiki;
$groupfilter = $this->groupfilter;
$groupfilter = $this->groupfilter;
$condition_session = $this->condition_session;
$condition_session = $this->condition_session;
$course_id = api_get_course_int_id();
$course_id = api_get_course_int_id();
$sql='SELECT id FROM '.$tbl_wiki.'
$sql='SELECT id FROM '.$tbl_wiki.'
@ -1292,7 +1304,7 @@ class Wiki
$status_editlock = $row['editlock'];
$status_editlock = $row['editlock'];
$id = $row['page_id'];
$id = $row['page_id'];
///c hange status
// C hange status
if (api_is_allowed_to_edit(false,true) || api_is_platform_admin()) {
if (api_is_allowed_to_edit(false,true) || api_is_platform_admin()) {
if (isset($_GET['actionpage']) & & $_GET['actionpage'] == 'lock' & & $status_editlock == 0) {
if (isset($_GET['actionpage']) & & $_GET['actionpage'] == 'lock' & & $status_editlock == 0) {
$status_editlock = 1;
$status_editlock = 1;
@ -1351,8 +1363,12 @@ class Wiki
$status_visibility=0;
$status_visibility=0;
}
}
$sql = 'UPDATE '.$tbl_wiki.' SET visibility="'.Database::escape_string($status_visibility).'"
$sql = 'UPDATE '.$tbl_wiki.' SET
WHERE c_id = '.$course_id.' AND reflink="'.Database::escape_string($page).'" AND '.$groupfilter.$condition_session;
visibility = "'.Database::escape_string($status_visibility).'"
WHERE
c_id = '.$course_id.' AND
reflink="'.Database::escape_string($page).'" AND
'.$groupfilter.$condition_session;
Database::query($sql);
Database::query($sql);
// Although the value now is assigned to all (not only the first),
// Although the value now is assigned to all (not only the first),
@ -1388,7 +1404,6 @@ class Wiki
$page = $this->page;
$page = $this->page;
$condition_session = $this->condition_session;
$condition_session = $this->condition_session;
$groupfilter = $this->groupfilter;
$groupfilter = $this->groupfilter;
$course_id = api_get_course_int_id();
$course_id = api_get_course_int_id();
$sql = 'SELECT * FROM '.$tbl_wiki.'
$sql = 'SELECT * FROM '.$tbl_wiki.'
@ -1576,9 +1591,7 @@ class Wiki
WHERE c_id = '.$course_id.' AND id="'.$id.'" AND user_id="'.api_get_user_id().'" AND type="P"';
WHERE c_id = '.$course_id.' AND id="'.$id.'" AND user_id="'.api_get_user_id().'" AND type="P"';
$result=Database::query($sql);
$result=Database::query($sql);
$row = Database::fetch_array($result);
$row = Database::fetch_array($result);
$idm = $row['id'];
$idm = $row['id'];
if (empty($idm)) {
if (empty($idm)) {
$status_notify = 0;
$status_notify = 0;
} else {
} else {
@ -1735,7 +1748,6 @@ class Wiki
$groupId = api_get_group_id();
$groupId = api_get_group_id();
$session_id=api_get_session_id();
$session_id=api_get_session_id();
$course_id = api_get_course_int_id();
$course_id = api_get_course_int_id();
$group_properties = GroupManager::get_group_properties($groupId);
$group_properties = GroupManager::get_group_properties($groupId);
$group_name = $group_properties['name'];
$group_name = $group_properties['name'];
$allow_send_mail = false; //define the variable to below
$allow_send_mail = false; //define the variable to below
@ -1762,7 +1774,6 @@ class Wiki
ORDER BY id ASC';
ORDER BY id ASC';
$result=Database::query($sql);
$result=Database::query($sql);
$row = Database::fetch_array($result);
$row = Database::fetch_array($result);
$id = $row['id'];
$id = $row['id'];
$email_page_name = $row['title'];
$email_page_name = $row['title'];
if ($row['visibility'] == 1) {
if ($row['visibility'] == 1) {
@ -1781,7 +1792,6 @@ class Wiki
}
}
} elseif ($type=='D') {
} elseif ($type=='D') {
//if added a post to discuss
//if added a post to discuss
//first, current author and time
//first, current author and time
//Who is the author of last message?
//Who is the author of last message?
$userinfo = api_get_user_info($lastuser);
$userinfo = api_get_user_info($lastuser);
@ -1795,11 +1805,8 @@ class Wiki
$minutes = substr($lastime, 14, 2);
$minutes = substr($lastime, 14, 2);
$seconds = substr($lastime, 17, 2);
$seconds = substr($lastime, 17, 2);
$email_date_changes = $day.' '.$month.' '.$year.' '.$hours.":".$minutes.":".$seconds;
$email_date_changes = $day.' '.$month.' '.$year.' '.$hours.":".$minutes.":".$seconds;
//second, extract data from first reg
//second, extract data from first reg
$id = $id_or_ref; //$id_or_ref is id from tblwiki
$id = $id_or_ref; //$id_or_ref is id from tblwiki
$sql = 'SELECT * FROM '.$tbl_wiki.'
$sql = 'SELECT * FROM '.$tbl_wiki.'
WHERE c_id = '.$course_id.' AND id="'.$id.'"
WHERE c_id = '.$course_id.' AND id="'.$id.'"
ORDER BY id ASC';
ORDER BY id ASC';
@ -1864,14 +1871,12 @@ class Wiki
} elseif ($type=='E') {
} elseif ($type=='E') {
$id = 0;
$id = 0;
$allow_send_mail = true;
$allow_send_mail = true;
// Who is the author?
// Who is the author?
$userinfo = api_get_user_info(api_get_user_id()); //current user
$userinfo = api_get_user_info(api_get_user_id()); //current user
$email_user_author = get_lang('DeletedBy').': '.$userinfo['complete_name'];
$email_user_author = get_lang('DeletedBy').': '.$userinfo['complete_name'];
//When ?
//When ?
$today = date('r'); //current time
$today = date('r'); //current time
$email_date_changes = $today;
$email_date_changes = $today;
$sql = 'SELECT * FROM '.$tbl_wiki_mailcue.'
$sql = 'SELECT * FROM '.$tbl_wiki_mailcue.'
WHERE
WHERE
c_id = '.$course_id.' AND
c_id = '.$course_id.' AND
@ -1962,7 +1967,6 @@ class Wiki
$css = str_replace('main/', $root_rel.'main/', $css);
$css = str_replace('main/', $root_rel.'main/', $css);
$css = str_replace('images/', $root_rel.$css_path.$theme.'images/', $css);
$css = str_replace('images/', $root_rel.$css_path.$theme.'images/', $css);
$css = str_replace('../../img/', $root_rel.'main/img/', $css);
$css = str_replace('../../img/', $root_rel.'main/img/', $css);
$asciimathmal_script = (api_contains_asciimathml($wikiContents) || api_contains_asciisvg($wikiContents))
$asciimathmal_script = (api_contains_asciimathml($wikiContents) || api_contains_asciisvg($wikiContents))
? '< script src = "'.api_get_path(WEB_CODE_PATH).'inc/lib/javascript/asciimath/ASCIIMathML.js" type = "text/javascript" > < / script > '."\n" : '';
? '< script src = "'.api_get_path(WEB_CODE_PATH).'inc/lib/javascript/asciimath/ASCIIMathML.js" type = "text/javascript" > < / script > '."\n" : '';
@ -2109,7 +2113,6 @@ class Wiki
$session_id = $this->session_id;
$session_id = $this->session_id;
$groupId = api_get_group_id();
$groupId = api_get_group_id();
$groupInfo = GroupManager::get_group_properties($groupId);
$groupInfo = GroupManager::get_group_properties($groupId);
if ($groupId == 0) {
if ($groupId == 0) {
//extract course members
//extract course members
if (!empty($session_id)) {
if (!empty($session_id)) {
@ -2122,7 +2125,6 @@ class Wiki
$subscribed_users = GroupManager::get_subscribed_users($groupInfo['iid']);
$subscribed_users = GroupManager::get_subscribed_users($groupInfo['iid']);
$subscribed_tutors = GroupManager::get_subscribed_tutors($groupInfo['iid']);
$subscribed_tutors = GroupManager::get_subscribed_tutors($groupInfo['iid']);
$a_users_to_add_with_duplicates = array_merge($subscribed_users, $subscribed_tutors);
$a_users_to_add_with_duplicates = array_merge($subscribed_users, $subscribed_tutors);
//remove duplicates
//remove duplicates
$a_users_to_add = $a_users_to_add_with_duplicates;
$a_users_to_add = $a_users_to_add_with_duplicates;
//array_walk($a_users_to_add, create_function('& $value,$key', '$value = json_encode($value);'));
//array_walk($a_users_to_add, create_function('& $value,$key', '$value = json_encode($value);'));
@ -2131,7 +2133,6 @@ class Wiki
}
}
$all_students_pages = array();
$all_students_pages = array();
// Data about teacher
// Data about teacher
$userId = api_get_user_id();
$userId = api_get_user_id();
$userinfo = api_get_user_info($userId);
$userinfo = api_get_user_info($userId);
@ -2245,7 +2246,6 @@ class Wiki
$groupfilter = $this->groupfilter;
$groupfilter = $this->groupfilter;
$_course = $this->courseInfo;
$_course = $this->courseInfo;
$course_id = api_get_course_int_id();
$course_id = api_get_course_int_id();
echo '< legend > '.get_lang('WikiSearchResults').': '.Security::remove_XSS($search_term);
echo '< legend > '.get_lang('WikiSearchResults').': '.Security::remove_XSS($search_term);
echo '< / legend > ';
echo '< / legend > ';
@ -2283,8 +2283,7 @@ class Wiki
s1.reflink = s2.reflink AND
s1.reflink = s2.reflink AND
".$groupfilter.$condition_session.")";
".$groupfilter.$condition_session.")";
// warning don't use group by reflink because don't return the last version
// warning don't use group by reflink because don't return the last version
}
} else {
else {
$sql = "SELECT * FROM ".$tbl_wiki." s1
$sql = "SELECT * FROM ".$tbl_wiki." s1
WHERE
WHERE
s1.c_id = $course_id AND
s1.c_id = $course_id AND
@ -2786,8 +2785,7 @@ class Wiki
$total_tables = $total_tables+substr_count($row['content'], "< table " ) ;
$total_tables = $total_tables+substr_count($row['content'], "< table " ) ;
}
}
//check only last version of all pages (current page)
// Check only last version of all pages (current page)
$sql =' SELECT *, COUNT(*) AS TOTAL_PAGES, SUM(hits) AS TOTAL_VISITS_LV
$sql =' SELECT *, COUNT(*) AS TOTAL_PAGES, SUM(hits) AS TOTAL_VISITS_LV
FROM '.$tbl_wiki.' s1
FROM '.$tbl_wiki.' s1
WHERE s1.c_id = '.$course_id.' AND id=(
WHERE s1.c_id = '.$course_id.' AND id=(
@ -2878,7 +2876,10 @@ class Wiki
// Total hidden pages
// Total hidden pages
$total_hidden = 0;
$total_hidden = 0;
$sql = 'SELECT * FROM '.$tbl_wiki.'
$sql = 'SELECT * FROM '.$tbl_wiki.'
WHERE c_id = '.$course_id.' AND visibility=0 AND '.$groupfilter.$condition_session.'
WHERE
c_id = '.$course_id.' AND
visibility = 0 AND
'.$groupfilter.$condition_session.'
GROUP BY reflink';
GROUP BY reflink';
// or group by page_id. As the mark of hidden places it in all versions of the page, I can use group by to see the first
// or group by page_id. As the mark of hidden places it in all versions of the page, I can use group by to see the first
$allpages=Database::query($sql);
$allpages=Database::query($sql);
@ -2944,7 +2945,6 @@ class Wiki
}
}
// Total versions with any short comment by user or system
// Total versions with any short comment by user or system
$total_comment_version = 0;
$total_comment_version = 0;
$sql = 'SELECT * FROM '.$tbl_wiki.'
$sql = 'SELECT * FROM '.$tbl_wiki.'
WHERE c_id = '.$course_id.' AND comment!="" AND '.$groupfilter.$condition_session.'';
WHERE c_id = '.$course_id.' AND comment!="" AND '.$groupfilter.$condition_session.'';
@ -2954,7 +2954,6 @@ class Wiki
}
}
// Total pages that can only be scored by teachers.
// Total pages that can only be scored by teachers.
$total_only_teachers_rating = 0;
$total_only_teachers_rating = 0;
$sql = 'SELECT * FROM '.$tbl_wiki.'
$sql = 'SELECT * FROM '.$tbl_wiki.'
WHERE c_id = '.$course_id.' AND
WHERE c_id = '.$course_id.' AND
@ -2971,7 +2970,6 @@ class Wiki
$total_rating_by_peers = $total_pages - $total_only_teachers_rating;
$total_rating_by_peers = $total_pages - $total_only_teachers_rating;
//Total pages identified as standard task
//Total pages identified as standard task
$total_task = 0;
$total_task = 0;
$sql='SELECT * FROM '.$tbl_wiki.', '.$tbl_wiki_conf.'
$sql='SELECT * FROM '.$tbl_wiki.', '.$tbl_wiki_conf.'
WHERE '.$tbl_wiki_conf.'.c_id = '.$course_id.' AND
WHERE '.$tbl_wiki_conf.'.c_id = '.$course_id.' AND
@ -2984,7 +2982,6 @@ class Wiki
}
}
//Total pages identified as teacher page (wiki portfolio mode - individual assignment)
//Total pages identified as teacher page (wiki portfolio mode - individual assignment)
$total_teacher_assignment = 0;
$total_teacher_assignment = 0;
$sql = 'SELECT * FROM '.$tbl_wiki.' s1
$sql = 'SELECT * FROM '.$tbl_wiki.' s1
WHERE s1.c_id = '.$course_id.' AND assignment=1 AND id=(
WHERE s1.c_id = '.$course_id.' AND assignment=1 AND id=(
@ -3070,7 +3067,6 @@ class Wiki
}
}
// Average user progress in his pages.
// Average user progress in his pages.
$media_progress = 0;
$media_progress = 0;
$sql = 'SELECT *, SUM(progress) AS TOTAL_PROGRESS
$sql = 'SELECT *, SUM(progress) AS TOTAL_PROGRESS
FROM '.$tbl_wiki.' s1
FROM '.$tbl_wiki.' s1
@ -4354,7 +4350,6 @@ class Wiki
}
}
$current_row = $this->getWikiData();
$current_row = $this->getWikiData();
$sql = 'SELECT * FROM '.$tbl_wiki.'
$sql = 'SELECT * FROM '.$tbl_wiki.'
WHERE
WHERE
c_id = '.$course_id.' AND
c_id = '.$course_id.' AND
@ -4362,11 +4357,9 @@ class Wiki
'.$groupfilter.$condition_session.'
'.$groupfilter.$condition_session.'
ORDER BY id DESC'; //last version
ORDER BY id DESC'; //last version
$result = Database::query($sql);
$result = Database::query($sql);
$last_row = Database::fetch_array($result);
$last_row = Database::fetch_array($result);
if ($view < $last_row['id']) {
if ($view < $last_row['id']) {
$message = '< center > '.get_lang('NoAreSeeingTheLastVersion').'< br / >
$message = '< center > '.get_lang('NoAreSeeingTheLastVersion').'< br / >
'.get_lang("Version").' (
'.get_lang("Version").' (
< a href = "index.php?cidReq='.$_course['code'].'&action=showpage&title='.api_htmlentities(urlencode($current_row['reflink'])).'&group_id='.$current_row['group_id'].'&session_id='.$current_row['session_id'].'&view='.api_htmlentities($_GET['view']).'" title = "'.get_lang('CurrentVersion').'" >
< a href = "index.php?cidReq='.$_course['code'].'&action=showpage&title='.api_htmlentities(urlencode($current_row['reflink'])).'&group_id='.$current_row['group_id'].'&session_id='.$current_row['session_id'].'&view='.api_htmlentities($_GET['view']).'" title = "'.get_lang('CurrentVersion').'" >
@ -4448,7 +4441,15 @@ class Wiki
$rows[] = $row;
$rows[] = $row;
}
}
$table = new SortableTableFromArrayConfig($rows,0,10,'LinkedPages_table','','','DESC');
$table = new SortableTableFromArrayConfig(
$rows,
0,
10,
'LinkedPages_table',
'',
'',
'DESC'
);
$table->set_additional_parameters(
$table->set_additional_parameters(
array(
array(
'cidReq' => Security::remove_XSS($_GET['cidReq']),
'cidReq' => Security::remove_XSS($_GET['cidReq']),
@ -4552,7 +4553,15 @@ class Wiki
$rows[] = $row;
$rows[] = $row;
}
}
$table = new SortableTableFromArrayConfig($rows,1, 10, 'OrphanedPages_table','','','DESC');
$table = new SortableTableFromArrayConfig(
$rows,
1,
10,
'OrphanedPages_table',
'',
'',
'DESC'
);
$table->set_additional_parameters(
$table->set_additional_parameters(
array(
array(
'cidReq' => Security::remove_XSS($_GET['cidReq']),
'cidReq' => Security::remove_XSS($_GET['cidReq']),
@ -4606,7 +4615,6 @@ class Wiki
$refs = explode(" ", trim($row["linksto"]));
$refs = explode(" ", trim($row["linksto"]));
// Find linksto into reflink. If not found ->page is wanted
// Find linksto into reflink. If not found ->page is wanted
foreach ($refs as $v) {
foreach ($refs as $v) {
if (!in_array($v, $pages)) {
if (!in_array($v, $pages)) {
if (trim($v)!="") {
if (trim($v)!="") {
$wanted[]=$v;
$wanted[]=$v;
@ -4626,7 +4634,15 @@ class Wiki
$rows[] = $row;
$rows[] = $row;
}
}
$table = new SortableTableFromArrayConfig($rows,0,10,'WantedPages_table','','','DESC');
$table = new SortableTableFromArrayConfig(
$rows,
0,
10,
'WantedPages_table',
'',
'',
'DESC'
);
$table->set_additional_parameters(
$table->set_additional_parameters(
array(
array(
'cidReq' => Security::remove_XSS($_GET['cidReq']),
'cidReq' => Security::remove_XSS($_GET['cidReq']),
@ -4723,8 +4739,6 @@ class Wiki
$session_id = $this->session_id;
$session_id = $this->session_id;
$groupId = $this->group_id;
$groupId = $this->group_id;
$page = $this->page;
$page = $this->page;
$actionsLeft = '';
$actionsLeft = '';
$actionsLeft .= '< a href = "index.php?action=showpage&title=index&cidReq='.$_course['id'].'&session_id='.$session_id.'&group_id='.$groupId.'" > '.
$actionsLeft .= '< a href = "index.php?action=showpage&title=index&cidReq='.$_course['id'].'&session_id='.$session_id.'&group_id='.$groupId.'" > '.
Display::return_icon('home.png', get_lang('Home'), '', ICON_SIZE_MEDIUM).'< / a > ';
Display::return_icon('home.png', get_lang('Home'), '', ICON_SIZE_MEDIUM).'< / a > ';
@ -4752,7 +4766,6 @@ class Wiki
// menu find
// menu find
$actionsLeft .= '< a href = "index.php?cidReq='.$_course['id'].'&action=searchpages&session_id='.$session_id.'&group_id='.$groupId.'" ' . self::is_active_navigation_tab ( ' searchpages ' ) . ' > '.
$actionsLeft .= '< a href = "index.php?cidReq='.$_course['id'].'&action=searchpages&session_id='.$session_id.'&group_id='.$groupId.'" ' . self::is_active_navigation_tab ( ' searchpages ' ) . ' > '.
Display::return_icon('search.png', get_lang('SearchPages'), '', ICON_SIZE_MEDIUM).'< / a > < / li > ';
Display::return_icon('search.png', get_lang('SearchPages'), '', ICON_SIZE_MEDIUM).'< / a > < / li > ';
///menu more
///menu more
$actionsLeft .= '< a href = "index.php?action=more&title='.api_htmlentities(urlencode($page)).'" ' . self::is_active_navigation_tab ( ' more ' ) . ' > '.
$actionsLeft .= '< a href = "index.php?action=more&title='.api_htmlentities(urlencode($page)).'" ' . self::is_active_navigation_tab ( ' more ' ) . ' > '.
Display::return_icon('stats.png', get_lang('Statistics'), '', ICON_SIZE_MEDIUM).'< / a > < / li > ';
Display::return_icon('stats.png', get_lang('Statistics'), '', ICON_SIZE_MEDIUM).'< / a > < / li > ';