Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/10/2009, 04:39
vesvello
 
Fecha de Ingreso: noviembre-2007
Mensajes: 118
Antigüedad: 18 años, 11 meses
Puntos: 0
como hacer redeclare

Estoy tratando de integrar wordpress con magentocommerce y tengo este error:

PHP Fatal error: Cannot redeclare __() in /wordpress/wp-includes/l10n.php on line 102

esta es la linea 102

Código PHP:
function __( $text, $domain = 'default' ) {
    return 
translate( $text, $domain ); 
Quisiera saber si puedo redeclarar la funcion y si lo estoy haciendo bien:

Código PHP:
if (!function_exists('__')) { 
function 
__( $text, $domain = 'default' ) {
    return 
translate( $text, $domain );
}
} else {
override_function('__', '$text, $domain = "default"', 'return translate( $text, $domain );');
}