summaryrefslogtreecommitdiff
path: root/lib/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins')
-rw-r--r--lib/plugins/importoldchangelog/action.php10
-rw-r--r--lib/plugins/revert/admin.php2
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/plugins/importoldchangelog/action.php b/lib/plugins/importoldchangelog/action.php
index 0c2601e16..8effe4ec9 100644
--- a/lib/plugins/importoldchangelog/action.php
+++ b/lib/plugins/importoldchangelog/action.php
@@ -47,10 +47,10 @@ class action_plugin_importoldchangelog extends DokuWiki_Action_Plugin {
$sum = rtrim($oldline[4], "\n");
}
// guess line type
- $type = 'E';
- if ($wasMinor) { $type = 'e'; }
- if ($sum===$lang['created']) { $type = 'C'; }
- if ($sum===$lang['deleted']) { $type = 'D'; }
+ $type = DOKU_CHANGE_TYPE_EDIT;
+ if ($wasMinor) { $type = DOKU_CHANGE_TYPE_MINOR_EDIT; }
+ if ($sum===$lang['created']) { $type = DOKU_CHANGE_TYPE_CREATE; }
+ if ($sum===$lang['deleted']) { $type = DOKU_CHANGE_TYPE_DELETE; }
// build new log line
$tmp = array();
$tmp['date'] = (int)$oldline[0];
@@ -88,7 +88,7 @@ class action_plugin_importoldchangelog extends DokuWiki_Action_Plugin {
$tmp = array();
$tmp['date'] = (int)$date;
$tmp['ip'] = '127.0.0.1'; // original ip lost
- $tmp['type'] = 'E';
+ $tmp['type'] = DOKU_CHANGE_TYPE_EDIT;
$tmp['id'] = $id;
$tmp['user'] = ''; // original user lost
$tmp['sum'] = '('.$lang['restored'].')'; // original summary lost
diff --git a/lib/plugins/revert/admin.php b/lib/plugins/revert/admin.php
index b9c196297..5c5d98ab6 100644
--- a/lib/plugins/revert/admin.php
+++ b/lib/plugins/revert/admin.php
@@ -132,7 +132,7 @@ class admin_plugin_revert extends DokuWiki_Admin_Plugin {
$cnt++;
$date = date($conf['dformat'],$recent['date']);
- echo ($recent['type']==='e') ? '<li class="minor">' : '<li>';
+ echo ($recent['type']===DOKU_CHANGE_TYPE_MINOR_EDIT) ? '<li class="minor">' : '<li>';
echo '<div class="li">';
echo '<input type="checkbox" name="revert[]" value="'.hsc($recent['id']).'" checked="checked" id="revert__'.$cnt.'" />';
echo '<label for="revert__'.$cnt.'">'.$date.'</label> ';