Thomas Bruederli
2014-11-03 a63b9b546c699e1f14ed26e18834b163360ba2c8
Add plugin hook 'db_table_name' as requested in #1489837
1 files modified
4 ■■■■ changed files
program/lib/Roundcube/rcube_db.php 4 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_db.php
@@ -1063,6 +1063,10 @@
     */
    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;