folgende (quick & dirty) Änderungen helfen beim 1.0.0 rc2 weiter...
1. im Backend(BE) einmal Autoload-Creator aufrufen und die bestehende files für unternehmen überschreiben
2. unternehmen\assets\.htaccess ändern damit im Backend die Icons angezeigt werdem:
PHP-Code:
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
3. unternehmen\classes\CompanyList.php
nach Zeile 94 $limit = null; einfügen
PHP-Code:
$limit = null;
if ($this->numberOfItems > 0)
{
$limit = $this->numberOfItems;
}
und austauschen von (Zeile 133ff)
PHP-Code:
// Get the items
if (isset ( $limit )) {
$objResult = $this->Database->prepare ( "SELECT * FROM tl_company WHERE pid=? " . $strQueryWhere . " ORDER BY company ASC LIMIT ?, ?" )->execute ( $this->company_archiv, $offset, $limit );
} else {
$objResult = $this->Database->prepare ( "SELECT * FROM tl_company WHERE pid=? " . $strQueryWhere . " ORDER BY company ASC LIMIT ?, ?" )->execute ( $this->company_archiv, $offset, 0 );
}
gegen
PHP-Code:
// Get the items
if (isset ( $limit )) {
$objResult = $this->Database->prepare ( "SELECT * FROM tl_company WHERE pid=? " . $strQueryWhere . " ORDER BY company ASC" )
->limit( $limit, $offset )
->execute ( $this->company_archiv);
} else {
$objResult = $this->Database->prepare ( "SELECT * FROM tl_company WHERE pid=? " . $strQueryWhere . " ORDER BY company ASC" )
->limit( 0, $offset )
->execute ( $this->company_archiv );
}
Lesezeichen