|
@@ 1931-1944 (lines=14) @@
|
| 1928 |
|
$row = Database::fetch_array($result); |
| 1929 |
|
$id = $row['id']; |
| 1930 |
|
$email_page_name = $row['title']; |
| 1931 |
|
if ($row['visibility'] == 1) { |
| 1932 |
|
$allow_send_mail = true; //if visibility off - notify off |
| 1933 |
|
$sql = 'SELECT * FROM '.$tbl_wiki_mailcue.' |
| 1934 |
|
WHERE |
| 1935 |
|
c_id = '.$course_id.' AND |
| 1936 |
|
id="'.$id.'" AND |
| 1937 |
|
type="'.$type.'" OR |
| 1938 |
|
type="F" AND |
| 1939 |
|
group_id="'.$groupId.'" AND |
| 1940 |
|
session_id="'.$session_id.'"'; |
| 1941 |
|
//type: P=page, D=discuss, F=full. |
| 1942 |
|
$result = Database::query($sql); |
| 1943 |
|
$emailtext = get_lang( |
| 1944 |
|
'EmailWikipageModified' |
| 1945 |
|
).' <strong>'.$email_page_name.'</strong> '.get_lang( |
| 1946 |
|
'Wiki' |
| 1947 |
|
); |
|
@@ 1974-1987 (lines=14) @@
|
| 1971 |
|
$row = Database::fetch_array($result); |
| 1972 |
|
|
| 1973 |
|
$email_page_name = $row['title']; |
| 1974 |
|
if ($row['visibility_disc'] == 1) { |
| 1975 |
|
$allow_send_mail = true; //if visibility off - notify off |
| 1976 |
|
$sql = 'SELECT * FROM '.$tbl_wiki_mailcue.' |
| 1977 |
|
WHERE |
| 1978 |
|
c_id = '.$course_id.' AND |
| 1979 |
|
id="'.$id.'" AND |
| 1980 |
|
type="'.$type.'" OR |
| 1981 |
|
type="F" AND |
| 1982 |
|
group_id="'.$groupId.'" AND |
| 1983 |
|
session_id="'.$session_id.'"'; |
| 1984 |
|
//type: P=page, D=discuss, F=full |
| 1985 |
|
$result = Database::query($sql); |
| 1986 |
|
$emailtext = get_lang('EmailWikiPageDiscAdded').' <strong>'.$email_page_name.'</strong> '.get_lang('Wiki'); |
| 1987 |
|
} |
| 1988 |
|
} elseif ($type == 'A') { |
| 1989 |
|
//for added pages |
| 1990 |
|
$id = 0; //for tbl_wiki_mailcue |