PluginProbe
CSS & JavaScript Toolbox / 8.2
CSS & JavaScript Toolbox v8.2
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | controllers/templates-lookup.php +6 -35 11.58.2 View file →
@@ -38,9 +38,8 @@
38 38 $this->registryAction('embedded');
39 39 $this->registryAction('link');
40 40 $this->registryAction('unlink');
41 41 $this->registryAction('unlinkAll');
42 - $this->registryAction('getBlockLinkedTemplates');
43 42 }
44 43
45 44 /**
46 45 * put your comment there...
@@ -65,38 +64,12 @@
65 64 // Get embedded template code!
66 65 $this->response['code'] = $this->model->embedded();
67 66 }
68 67
69 - /**
70 - * put your comment there...
71 - *
72 - */
73 - protected function getBlockLinkedTemplatesAction() {
74 -
75 -
76 - $blockId = isset($_GET['blockId']) ? $_GET['blockId'] : null;
77 -
78 - try {
79 -
80 - if (!$blockId) {
81 -
82 - throw new Exception('Invalid Request parameters');
83 - }
84 -
85 - $this->response = CJTBlockTemplatesModel::getLinkedTemplatesCount($blockId);
86 - }
87 - catch (Exception $exception) {
88 -
89 -
90 - }
91 -
92 -
93 - }
94 -
95 - /**
96 - * put your comment there...
97 - *
98 - */
68 +/**
69 +* put your comment there...
70 +*
71 +*/
99 72 protected function linkAction() {
100 73 // Read inputs.
101 74 $this->model->inputs['templateId'] = $_REQUEST['templateId'];
102 75 $this->model->inputs['blockId'] = $_REQUEST['blockId'];
@@ -105,10 +78,9 @@
105 78 // Response with new state!
106 79 $this->response['newState'] = array(
107 80 'action' => 'unlink',
108 81 'text' => cssJSToolbox::getText('Unlink'),
109 - 'className' => 'template-action unlink-template',
110 - 'count' => CJTBlockTemplatesModel::getLinkedTemplatesCount($_REQUEST['blockId'])
82 + 'className' => 'template-action unlink-template'
111 83 );
112 84 }
113 85
114 86 /**
@@ -124,10 +96,9 @@
124 96 // Response with new state!
125 97 $this->response['newState'] = array(
126 98 'action' => 'link',
127 99 'text' => cssJSToolbox::getText('Link'),
128 - 'className' => 'template-action link-template',
129 - 'count' => CJTBlockTemplatesModel::getLinkedTemplatesCount($_REQUEST['blockId'])
100 + 'className' => 'template-action link-template'
130 101 );
131 102 }
132 103
133 104 /**