Versionsunterschiede von Git / Einen Patch Beitragen
â Vorherige Ănderung |
Nächste Ănderung â |
hinzugefĂźgt:
Seitenaufrufe:
256
How2patch > https://www.gitkraken.com/learn/git/git-patch
How2patch > https://www.gitkraken.com/learn/git/git-patch
entfernt:
Bestehende Action verbessern am Beisiel von Seitenaufrufe: 256
Erstelle eine LokalisierungĂndere die Datei /community/action/hits.php
if (!defined('IN_WACKO'))
{
exit;
}// Seitenaufrufe: 256
// 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