roundcubemail/program/lib/Roundcube/rcube_db.php
public function table_name($table, $quoted = false)
    {
        // let plugins alter the table name (#1489837)
        $plugin = rcube::get_instance()->plugins->exec_hook('db_table_name', array('table' => $table));
        $table = $plugin['table'];

        // add prefix to the table name if configured
        if (($prefix = $this->options['table_prefix']) && strpos($table, $prefix) !== 0) {
            $table = $prefix . $table;
        }

        if ($quoted) {
            $table = $this->quote_identifier($table);
        }

        return $table;
    }
public function table_name($table, $quoted = false)
    {
        // let plugins alter the table name (#1489837)
        $plugin = rcube::get_instance()->plugins->exec_hook('db_table_name', array('table' => $table));
        $table = $plugin['table'];

        // add prefix to the table name if configured
        if (($prefix = $this->options['table_prefix']) && strpos($table, $prefix) !== 0) {
            $table = $prefix . $table;
        }

        if ($quoted) {
            $table = $this->quote_identifier($table);
        }

        return $table;
    }
public function table_name ( $ table , $ quoted = false ) { // let plugins alter the table name (#1489837) $ plugin = rcube :: get_instance ( ) -> plugins -> exec_hook ( 'db_table_name' , array ( 'table' => $ table ) ) ; $ table = $ plugin [ 'table' ] ; // add prefix to the table name if configured if ( ( $ prefix = $ this -> options [ 'table_prefix' ] ) && strpos ( $ table , $ prefix ) !== 0 ) { $ table = $ prefix . $ table ; } if ( $ quoted ) { $ table = $ this -> quote_identifier ( $ table ) ; } return $ table ; }
Return correct name for a specific database table

@param string $table  Table name
@param bool   $quoted Quote table identifier

@return string Translated table name
Return correct name for a specific database table