Skip to content

Commit 17b4a39

Browse files
committed
Rename Internals - Prepare for Stable
Also fix the name of the internal test
1 parent 38d37d7 commit 17b4a39

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
File renamed without changes.

wdgrc_sql_contacts/wdgrc_sql_contacts.php renamed to sql_global_addressbooks/sql_global_addressbooks.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22
//ini_set('display_errors', 1);
3-
require_once(__DIR__ . '/wdgrc_sql_contacts_backend.php');
3+
require_once(__DIR__ . '/sql_global_backend.php');
44
/**
55
* Specialised Global Addressbook Contacts Class!
66
*
77
* @author Michael Daniel Telatynski <[email protected]>
88
*/
9-
class wdgrc_sql_contacts extends rcube_plugin {
9+
class sql_global_addressbooks extends rcube_plugin {
1010

1111
public $task = 'mail|addressbook';
1212

@@ -108,11 +108,11 @@ public function address_sources($p) {
108108
public function get_address_book($p) {
109109

110110
if (in_array($p['id'], self::ac(rcmail::get_instance()->config->get('_sql_supportbook', array()), 0))) {
111-
$p['instance'] = new wdgrc_sql_contacts_backend($p['id']);
111+
$p['instance'] = new sql_global_backend($p['id']);
112112
} elseif ($p['id'] === 'global') {
113-
$p['instance'] = new wdgrc_sql_contacts_backend('global');
113+
$p['instance'] = new sql_global_backend('global');
114114
$p['instance']->groups = rcmail::get_instance()->config->get('_sql_globalbook_gp', true);
115-
} elseif ($p['id'] === 'domain') { $p['instance'] = new wdgrc_sql_contacts_backend('domain'); }
115+
} elseif ($p['id'] === 'domain') { $p['instance'] = new sql_global_backend('domain'); }
116116

117117
return $p;
118118
}

wdgrc_sql_contacts/wdgrc_sql_contacts_backend.php renamed to sql_global_addressbooks/sql_global_backend.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

33
/**
4-
* Specialised Global Addressbook Contacts Class!
4+
* Specialised Global Addressbook Contacts Backend Class!
55
*
66
* @author Michael Daniel Telatynski <[email protected]>
77
*/
8-
class wdgrc_sql_contacts_backend extends rcube_addressbook {
8+
class sql_global_backend extends rcube_addressbook {
99

1010
public $primary_key = 'ID';
1111
public $readonly = true;
@@ -66,7 +66,7 @@ public function list_records($cols=null, $subset=0) {
6666

6767
default:
6868
$d = rcmail::get_instance()->config->get('_sql_supportbook', array());
69-
$f = array_flip(wdgrc_sql_contacts::ac($d, 0));
69+
$f = array_flip(sql_global_addressbooks::ac($d, 0));
7070
array_shift($z = $d[$f[$this->name]]);
7171
if ($this->filter) { $x[] = '(' . $this->filter .')'; }
7272
if (count($z) > 0) { $x[] = 'domain IN (' . $db->array2list($z) . ')'; }
File renamed without changes.

0 commit comments

Comments
 (0)