PluginProbe
CSS & JavaScript Toolbox / 8.0.3
CSS & JavaScript Toolbox v8.0.3
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/block-ajax.php +5 -18 128.0.3 View file →
@@ -36,9 +36,8 @@
36 36 $this->registryAction('getAPOP');
37 37 $this->registryAction('restoreRevision');
38 38 $this->registryAction('loadUrl');
39 39 $this->registryAction('downloadCodeFile');
40 - $this->registryAction('getAllAssignment');
41 40 }
42 41
43 42 /**
44 43 * put your comment there...
@@ -49,16 +48,8 @@
49 48 // Pass to CJTBlockController!
50 49 $this->redirect('block');
51 50 }
52 51
53 - /**
54 - * put your comment there...
55 - *
56 - */
57 - protected function getAllAssignmentAction() {
58 - $this->redirect('block');
59 - }
60 -
61 52 /**
62 53 * put your comment there...
63 54 *
64 55 * @deprecated this is just a redirect to the CJTBlockContoller::getAction().
@@ -76,9 +67,9 @@
76 67 protected function getBlockByAction() {
77 68 // Pass to CJTBlockController!
78 69 $this->redirect('block');
79 70 }
80 -
71 +
81 72 /**
82 73 * put your comment there...
83 74 *
84 75 * @deprecated All will be moved to other controllers in the future versions.
@@ -117,15 +108,11 @@
117 108 ->set('id', $revision->masterFile)
118 109 ->load()
119 110 ->getData()->code;
120 111 // Discard Pins.
121 - $customPins = array_keys( CJTBlockModel::getCustomPins() );
122 -
123 - foreach ( $customPins as $customPinName )
124 - {
125 - $revision->{$customPinName} = false;
126 - }
127 -
112 + $revision->pages = false;
113 + $revision->posts = false;
114 + $revision->categories = false;
128 115 // Return revision.
129 116 $this->response = $revision;
130 117 }
131 118
@@ -151,9 +138,9 @@
151 138 // Create view.
152 139 $view = $this->getView('blocks/revisions');
153 140 // Push view vars.
154 141 $view->blockId = $blockId;
155 - $view->revisions = array_reverse($revisions);
142 + $view->revisions = $revisions;
156 143 // Set output header.
157 144 $this->httpContentType = 'text/html';
158 145 // Return view content.
159 146 $this->response = $view->getTemplate('default');