1
0

minor whitespace and code cleanup

and a small github docnote fix
and added a todo for transforming a filename into a valid  upload path
This commit is contained in:
Ian
2015-09-30 11:22:37 +02:00
parent 9e49ecc8c3
commit d7b1e7d23d
6 changed files with 11 additions and 7 deletions

View File

@ -8,6 +8,7 @@ if (!serendipity_checkPermission('adminEntries')) {
return;
}
$per_page = array('12', '16', '50', '100');
$sort_order = array('timestamp' => DATE,
'isdraft' => PUBLISH . '/' . DRAFT,
'a.realname' => AUTHOR,
@ -15,7 +16,6 @@ $sort_order = array('timestamp' => DATE,
'last_modified' => LAST_UPDATED,
'title' => TITLE,
'id' => 'ID');
$per_page = array('12', '16', '50', '100');
$data = array();
@ -434,8 +434,8 @@ $data['entryForm'] = $entryForm;
$data['errors'] = $errors;
$data['get'] = $serendipity['GET']; // don't trust {$smarty.get.vars} if not proofed, as we often change GET vars via serendipty['GET'] by runtime
// make sure we've got these
if(!isset($data['urltoken'])) $data['urltoken'] = serendipity_setFormToken('url');
if(!isset($data['formtoken'])) $data['formtoken'] = serendipity_setFormToken();
if (!isset($data['urltoken'])) $data['urltoken'] = serendipity_setFormToken('url');
if (!isset($data['formtoken'])) $data['formtoken'] = serendipity_setFormToken();
echo serendipity_smarty_show('admin/entries.inc.tpl', $data);