Index: branches/RL2/extensions/Gadgets/backend/ForeignDBGadgetRepo.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | class ForeignDBGadgetRepo extends LocalGadgetRepo { |
18 | 18 | protected $db = null; |
19 | 19 | |
20 | | - protected $source, $dbServer, $dbUser, $dbPassword, $dbName, $dbFlags, $tablePrefix/*, $hasSharedCache*/; |
| 20 | + protected $source, $dbServer, $dbUser, $dbPassword, $dbName, $dbFlags, $tablePrefix, $hasSharedCache; |
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Constructor. |
— | — | @@ -25,13 +25,13 @@ |
26 | 26 | public function __construct( array $options ) { |
27 | 27 | parent::__construct( $options ); |
28 | 28 | |
29 | | - $this->namesKey = $this->getMemcKey( 'gadgets', 'foreigndbreponames' ); |
30 | | - |
31 | 29 | $optionKeys = array( 'source', 'dbType', 'dbServer', 'dbUser', 'dbPassword', 'dbName', |
32 | 30 | 'dbFlags', 'tablePrefix', 'hasSharedCache' ); |
33 | 31 | foreach ( $optionKeys as $optionKey ) { |
34 | 32 | $this->{$optionKey} = $options[$optionKey]; |
35 | 33 | } |
| 34 | + |
| 35 | + $this->namesKey = $this->getMemcKey( 'gadgets', 'foreigndbreponames' ); |
36 | 36 | } |
37 | 37 | |
38 | 38 | public function isWriteable() { |