better empty message, based to constant NONE

This commit is contained in:
Ian 2012-12-08 10:03:53 +01:00
parent 5d5faddaa2
commit af2c7efa21
3 changed files with 5 additions and 5 deletions

View File

@ -140,8 +140,8 @@
</li>
{/foreach}
</ol>
{if (!is_array($items) || empty($order_id))}
{$none}
{if isset($no_sequence)}
{$no_sequence}
{/if}
</fieldset>
{*** Smarty 3 has a new auto literal option which is enabled by default.

View File

@ -162,8 +162,8 @@
</li>
{/foreach}
</ol>
{if (!is_array($items) || empty($order_id))}
{$none}
{if isset($no_sequence)}
{$no_sequence}
{/if}
{*** Smarty 3 has a new auto literal option which is enabled by default.
When the { is surrounded by whitespace it is not interpreted as smarty delimiter but literal. e.g. ' } ;'

View File

@ -680,7 +680,7 @@ function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_nam
if (!is_array($items) or empty($order)) {
// Print the empty message
$data['none'] = sprint(NONE);
$data['no_sequence'] = sprint(NONE);
}
// Print the Javascript to drag-n-drop the list
// Finish the row