Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
Use the new fork.settings services.
Browse files Browse the repository at this point in the history
The getModuleSetting methods are deprecated.
  • Loading branch information
WouterSioen committed Aug 31, 2015
1 parent 1825f47 commit 5d41d55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private function getData()
// set URL and limit
$this->pagination['url'] = Navigation::getURLForBlock('{$camel_case_name}', 'category') . '/' . $this->category['url'];

$this->pagination['limit'] = Model::getModuleSetting('{$camel_case_name}', 'overview_num_items', 10);
$this->pagination['limit'] = $this->get('fork.settings')->get('{$camel_case_name}', 'overview_num_items', 10);

// populate count fields in pagination
$this->pagination['num_items'] = Frontend{$camel_case_name}Model::getCategoryCount($this->category['id']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function parse()
);
$this->header->addOpenGraphData(
'site_name',
Model::getModuleSetting('Core', 'site_title_' . FRONTEND_LANGUAGE, SITE_DEFAULT_TITLE),
$this->get('fork.settings')->get('Core', 'site_title_' . FRONTEND_LANGUAGE, SITE_DEFAULT_TITLE),
true
);
$this->header->addOpenGraphData('description', $this->record['meta_title'], true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private function getData()

// set URL and limit
$this->pagination['url'] = Navigation::getURLForBlock('{$camel_case_name}');
$this->pagination['limit'] = Model::getModuleSetting('{$camel_case_name}', 'overview_num_items', 10);
$this->pagination['limit'] = $this->get('fork.settings')->get('{$camel_case_name}', 'overview_num_items', 10);

// populate count fields in pagination
$this->pagination['num_items'] = Frontend{$camel_case_name}Model::getAllCount();
Expand Down

0 comments on commit 5d41d55

Please sign in to comment.