Remove debugging logger statements
This commit is contained in:
parent
d2a7f83bb5
commit
4528becf4c
@ -905,7 +905,6 @@ function widget_wiki_pages($arr) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
logger('pages: ' . json_encode($pages));
|
|
||||||
return replace_macros(get_markup_template('wiki_page_list.tpl'), array(
|
return replace_macros(get_markup_template('wiki_page_list.tpl'), array(
|
||||||
'$hide' => $hide,
|
'$hide' => $hide,
|
||||||
'$not_refresh' => $not_refresh,
|
'$not_refresh' => $not_refresh,
|
||||||
|
@ -230,7 +230,6 @@ function wiki_get_page_content($arr) {
|
|||||||
return array('content' => null, 'message' => 'Error reading wiki', 'success' => false);
|
return array('content' => null, 'message' => 'Error reading wiki', 'success' => false);
|
||||||
}
|
}
|
||||||
$page_path = $w['path'].'/'.$pageUrlName.'.md';
|
$page_path = $w['path'].'/'.$pageUrlName.'.md';
|
||||||
logger('$page_path: ' . $page_path);
|
|
||||||
if (is_readable($page_path) === true) {
|
if (is_readable($page_path) === true) {
|
||||||
if(filesize($page_path) === 0) {
|
if(filesize($page_path) === 0) {
|
||||||
$content = '';
|
$content = '';
|
||||||
@ -329,10 +328,8 @@ function wiki_revert_page($arr) {
|
|||||||
try {
|
try {
|
||||||
$git->setIdentity($observer['xchan_name'], $observer['xchan_addr']);
|
$git->setIdentity($observer['xchan_name'], $observer['xchan_addr']);
|
||||||
foreach ($git->git->tree($commitHash) as $object) {
|
foreach ($git->git->tree($commitHash) as $object) {
|
||||||
logger('tree object: ' . json_encode($object));
|
|
||||||
if ($object['type'] == 'blob' && $object['file'] === $pageUrlName.'.md' ) {
|
if ($object['type'] == 'blob' && $object['file'] === $pageUrlName.'.md' ) {
|
||||||
$content = $git->git->cat->blob($object['hash']);
|
$content = $git->git->cat->blob($object['hash']);
|
||||||
logger('content: ' . json_encode($content));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (\PHPGit\Exception\GitException $e) {
|
} catch (\PHPGit\Exception\GitException $e) {
|
||||||
|
Reference in New Issue
Block a user