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:
parent
9e49ecc8c3
commit
d7b1e7d23d
@ -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);
|
||||
|
||||
|
@ -206,7 +206,7 @@ if (!function_exists('errorToExceptionHandler')) {
|
||||
// while being in tags like <select> to push on top of page, else return non javascript use $str just there
|
||||
// sadly we can not use HEREDOC notation here, since this does not execute the javascript after finished writing
|
||||
echo "\n".'<script>
|
||||
if(typeof errorHandlerCreateDOM == "function") {
|
||||
if (typeof errorHandlerCreateDOM == "function") {
|
||||
var fragment = window.top.errorHandlerCreateDOM("Error redirect: '.addslashes($str).'");
|
||||
document.body.insertBefore(fragment, document.body.childNodes[0]);
|
||||
}' . "\n</script>\n<noscript>" . $str . "</noscript>\n";
|
||||
|
@ -1059,7 +1059,7 @@ function serendipity_getPostAuthSessionLanguage() {
|
||||
if ($serendipity['expose_s9y']) serendipity_header('X-Serendipity-InterfaceLangSource: Database');
|
||||
$lang = $serendipity['lang'];
|
||||
} else {
|
||||
$lang = (isset($_SESSION['serendipityLanguage']))?$_SESSION['serendipityLanguage']:$serendipity['lang'];
|
||||
$lang = (isset($_SESSION['serendipityLanguage'])) ? $_SESSION['serendipityLanguage'] : $serendipity['lang'];
|
||||
}
|
||||
|
||||
if (!isset($serendipity['languages'][$lang])) {
|
||||
|
@ -1360,7 +1360,7 @@ function serendipity_resize_image_gd($infilename, $outfilename, $newwidth, $newh
|
||||
* @param int Image height
|
||||
* @param int Target dimension size
|
||||
* @param string Dimension to constrain ('width', 'height', 'largest',
|
||||
'smallest'; defaults to original behavior, 'largest')
|
||||
* 'smallest'; defaults to original behavior, 'largest')
|
||||
* @return array An array with the scaled width and height
|
||||
*/
|
||||
function serendipity_calculate_aspect_size($width, $height, $size, $constraint = null) {
|
||||
@ -1938,6 +1938,7 @@ function serendipity_deletePath($dir) {
|
||||
|
||||
/**
|
||||
* Transform a filename into a valid upload path
|
||||
* ToDO: Rewrite to use converted Umlauts, eg -> ae!
|
||||
*
|
||||
* @access public
|
||||
* @param string The input filename
|
||||
|
@ -30,6 +30,7 @@
|
||||
</div>
|
||||
</header>
|
||||
{/if}
|
||||
|
||||
<main id="workspace" class="clearfix">
|
||||
{if NOT $admin_vars.is_logged_in}
|
||||
{$admin_vars.out|@serendipity_refhookPlugin:'backend_login_page'}
|
||||
@ -160,8 +161,10 @@
|
||||
{$admin_vars.main_content}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
</main>
|
||||
{if NOT $admin_vars.no_footer}
|
||||
|
||||
<footer id="meta">
|
||||
<p>{$admin_vars.version_info}</p>
|
||||
</footer>
|
||||
|
Loading…
x
Reference in New Issue
Block a user