Versionsunterschiede von Git / Einen Patch Beitragen
|
Nächste Änderung → |
hinzugefĂĽgt:
Bestehende Action verbessern am Beisiel von Seitenaufrufe: 248
Erstelle eine LokalisierungÄndere die Datei /community/action/hits.php
if (!defined('IN_WACKO'))
{
exit;
}// Seitenaufrufe: 248
// 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(
{
}$rs = $this->db->load_single(
"SELECT hits " .
"FROM " . $this->prefix . "page " .
"WHERE tag = " . $this->db->q($tag) . " " .
"LIMIT 1");
if (isset($rs['hits']))"FROM " . $this->prefix . "page " .
"WHERE tag = " . $this->db->q($tag) . " " .
"LIMIT 1");
{
$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