Skip to content

Commit

Permalink
Revert back to Version without class check.
Browse files Browse the repository at this point in the history
  • Loading branch information
MadeMyDay committed Feb 28, 2017
1 parent d66c528 commit 2338c76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion FieldtypePageTableExtended.module
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class FieldtypePageTableExtended extends FieldtypePageTable {
return array(
'title' => __('PageTable extended'), // Module Title
'summary' => __('Extends PageTable entries for rendering in admin', __FILE__), // Module summary
'version' => 232,
'version' => 233,
'requires' => array('FieldtypePageTable'),
'installs' => 'InputfieldPageTableExtended',
'autoload' => false,
Expand Down
9 changes: 3 additions & 6 deletions InputfieldPageTableExtended.module
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class InputfieldPageTableExtended extends InputfieldPageTable {
return array(
'title' => __('Inputfield for PageTableExtended', __FILE__), // Module Title
'summary' => __('Adds Inputfield for PageTableExtended', __FILE__), // Module Summary
'version' => 232,
'version' => 233,
'requires' => array('FieldtypePageTableExtended'),
'permanent' => false,
);
Expand All @@ -23,11 +23,8 @@ class InputfieldPageTableExtended extends InputfieldPageTable {

public function ___render() {

// https://processwire.com/talk/topic/5477-check-if-a-module-is-loaded/
if(!class_exists("InputfieldPageTable", false)) {
$this->config->scripts->add($this->config->urls->InputfieldPageTable . "InputfieldPageTable.js");
$this->config->styles->add($this->config->urls->InputfieldPageTable . "InputfieldPageTable.css");
}
$this->config->scripts->add($this->config->urls->InputfieldPageTable . "InputfieldPageTable.js");
$this->config->styles->add($this->config->urls->InputfieldPageTable . "InputfieldPageTable.css");

if($this->resetCSS){
$this->config->styles->add($this->config->urls->InputfieldPageTableExtended . "resetAdminCSS.css");
Expand Down

0 comments on commit 2338c76

Please sign in to comment.