Versionsunterschiede von Git / Einen Patch Beitragen




← Vorherige Änderung
Nächste Änderung →

entfernt:
====Bestehende Action verbessern am Beisiel von {{hits}}==
Erstelle eine Lokalisierung
Ändere die Datei /community/action/hits.php
if (!defined('IN_WACKO'))
{
	exit;
}
// {{hits}}
// take $this->page['hits'] in the first place
// set defaults
$page		??= '';
$result		= 0;
if ($page)
{
	$tag = $this->unwrap_link($page);
	$rs = $this->db->load_single(
		"SELECT hits " .
		"FROM " . $this->prefix . "page " .
		"WHERE tag = " . $this->db->q($tag) . " "
.
		"LIMIT 1");
	if (isset($rs['hits']))
	{
		$result = $rs['hits'];
	}
}
else
{
	$result = $this->page['hits'];
}
$tpl->result = $result;
## echo number_format($result, 0, ',', '.');
Erstelle eine Datei /community/action/template/hits.tpl
Erstelle Sprachdateien