Hallo
Ich hab Joomla 1.5.15 im Bundle mit Virtuemart 1.1.14 installiert. Im Backend stehen alle Custom Quick Icons doppelt. Die Lösung dafür hab ich hier im Forum bereits gefunden... allerdings kann ich diese nicht Umsetzen, aufgrund des folgenden Problems:
Wenn ich auf Komponenten > CQI Individuelle Icons gehe bekomm ich folgenden Fehler:
Falls es bei der Lösungsfindung hilft, hier mal der Code aus der admin.customquickicons.php:Parse error: syntax error, unexpected '=', expecting ')' in /www/htdocs/w0091088/cms/administrator/components/com_customquickicons/admin.customquickicons.php on line 736
(Line 736 - 773)
Anmerkung: Bin Joomla Newbie... und PHPmäßig steh ich eher auf dem Stand "Grundkenntnisse"PHP-Code:function getImageFolders( $basePath = '', &$imgFolders = '' ) {
$folders = array();
if( !$basePath ) {
$basePath = str_replace( '/administrator/', '', JPATH_SITE ) .DS;
}
if( empty( $imgFolders ) || !is_array( $imgFolders ) ) {
$imgFolders = array();
}
// filter folders
if( ( strpos( $basePath, 'instal' ) === false )
&& ( strpos( $basePath, 'mod_' ) === false )
&& ( strpos( $basePath, 'editor' ) === false ) ) {
if( strpos( $basePath, 'image' ) !== false ) {
$folder = str_replace( JPATH_SITE, '', $basePath );
$folder = str_replace( DS, '/', $folder );
$imgFolders[] = $folder;
}
}
if( is_dir( $basePath ) ) {
if( $dh = opendir( $basePath ) ) {
while( ( $file = readdir( $dh ) ) !== false ) {
if( $file != '.' && $file != '..' ) {
if( is_dir( $basePath . $file ) ) {
getImageFolders( $basePath . $file .DS, $imgFolders );
}
}
}
closedir( $dh );
}
}
return $imgFolders;
}
![]()


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen