Dafür einfach den Inhalt der Datei wcf\lib\system\dashboard\box\DonationButtonSidebarDashboardBox.class.php durch diesen hier ersetzen
PHP: DonationButtonSidebarDashboardBox.class.php
<?php
namespace wcf\system\dashboard\box;
use wcf\data\dashboard\box\DashboardBox;
use wcf\page\IPage;
use wcf\system\WCF;
/**
* Show the donation button in the sidebar
*
* @author Olaf Braun
* @copyright 2016 Olaf Braun - Software Development
* @license WBB-Elite.de License <https://lizenz.wbb-elite.de/lizenz.html>
* @package wcf\system\dashboard\box
*/
class DonationButtonSidebarDashboardBox extends AbstractSidebarDashboardBox {
/**
* @see \wcf\system\dashboard\box\IDashboardBox::init()
*/
public function init(DashboardBox $box, IPage $page) {
parent::init($box, $page);
$this->fetched();
}
/**
* @see \wcf\system\dashboard\box\AbstractContentDashboardBox::render()
*/
protected function render() {
if(!WCF::getSession()->getPermission("user.donation.canDonate")) return '';
return WCF::getTPL()->fetch('dashboardBoxDonationButton');
}
}
Alles anzeigen