Skip to content

Commit

Permalink
adding table names config
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerkrauss committed May 24, 2017
1 parent fe6d93e commit b71e544
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions code/model/Subsite.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
*/
class Subsite extends DataObject {

private static $table_name = 'Subsite';

/**
* @var $use_session_subsiteid Boolean Set to TRUE when using the CMS and FALSE
* when browsing the frontend of a website.
Expand Down
4 changes: 3 additions & 1 deletion code/model/SubsiteDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
*/
class SubsiteDomain extends DataObject {

/**
private static $table_name = 'SubsiteDomain';

/**
*
* @var string
*/
Expand Down
4 changes: 3 additions & 1 deletion code/pages/SubsitesVirtualPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@

class SubsitesVirtualPage extends VirtualPage {

private static $description = 'Displays the content of a page on another subsite';
private static $table_name = 'SubsitesVirtualPage';

private static $description = 'Displays the content of a page on another subsite';

private static $db = array(
'CustomMetaTitle' => 'Varchar(255)',
Expand Down

0 comments on commit b71e544

Please sign in to comment.