Joomla com_attachment

Joomla! & Extensions

Un interessantissimo componente per Joomla e` Com_ATTCHMENT, un software che permette di inserire dei files allegati a ogni articolo di Joomla! 1.5.

 

Ho verificato un incompatibilita` con SH404SEF, che viene risolta come indicato all'indirizzo:
http://code.joomla.org/gf/project/attachments/forum/?action=ForumBrowse&forum_id=14161&_forum_action=ForumMessageBrowse&thread_id=17532

Modificando il file /admin/components/com_sh404sh/sh404sef.class.php della vostra installazione Joomla come indicato nel 3d del forum citato:

2882
2883
2884
2885
2886
2887
// J 1.5 : will put unused vars in uri query
function shRebuildVars( $appendString, &$uri) {
  if (empty( $uri)) return;
  $string = empty($appendString) ? '' : ltrim($appendString, '?');
  $uri->setQuery($string);
}

 

con:

2882
2883
2884
2885
2886
2887
2888
2889
2890
// J 1.5 : will put unused vars in uri query - hack: since there is trouble between com_attachments and sh404SEF, calls by frontend of com_attachmenmt are not processes by this funtion
function shRebuildVars( $appendString, &$uri) {
  if (empty( $uri)) return;
  $absolut = getenv('REQUEST_URI'); // requests the current non-SEF-URL
  if(strpos($absolut,"com_attachments")==false) { // in case it's a com_attachment link, the setQuery issue is left out. Otherwise, since it's needed, it's being performed
             $string = empty($appendString) ? '' : ltrim($appendString, '?');
             $uri->setQuery($string);
                                             }
}

Ultimo aggiornamento (Domenica 01 Maggio 2011 23:47)

 

Aggiungi commento


Codice di sicurezza
Aggiorna