PluginProbe
ShiftController Employee Shift Scheduling / 4.9.66
ShiftController Employee Shift Scheduling v4.9.66
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | sh4/feed/html/admin/feed.php +12 -20 4.9.964.9.66 View file →
@@ -157,28 +157,20 @@
157 157 $thisOut = $this->ui->makeList( $thisOut );
158 158 $out[] = $thisOut;
159 159
160 160 if( class_exists('SH4_CFields_Model') ){
161 - $f = null;
162 - if (class_exists('ShiftController4Legacy_Pro')) {
163 - $f = ShiftController4Legacy_Pro::$instance->root();
164 - } elseif (class_exists('ShiftController4')) {
165 - $f = ShiftController4::$instance->root();
166 - }
167 -
168 - if (null !== $f) {
169 - $cfieldsQuery = $f->make('SH4_CFields_Query');
170 - $cfields = $cfieldsQuery->read();
171 - if( $cfields ){
172 - $moreOut = '<p><strong>__Optional Arguments__</strong></p>';
173 - $moreOut .= '<p>';
174 - foreach( $cfields as $cfield ){
175 - $moreOut .= '<em>' . $cfield->getName() . '</em> (' . $cfield->getLabel() . ')<br>';
176 - }
177 - $moreOut .= '</p>';
178 - $out[] = $moreOut;
179 - }
180 - }
161 + $f = ShiftController4::$instance->root();
162 + $cfieldsQuery = $f->make('SH4_CFields_Query');
163 + $cfields = $cfieldsQuery->read();
164 + if( $cfields ){
165 + $moreOut = '<p><strong>__Optional Arguments__</strong></p>';
166 + $moreOut .= '<p>';
167 + foreach( $cfields as $cfield ){
168 + $moreOut .= '<em>' . $cfield->getName() . '</em> (' . $cfield->getLabel() . ')<br>';
169 + }
170 + $moreOut .= '</p>';
171 + $out[] = $moreOut;
172 + }
181 173 }
182 174
183 175 $out = $this->ui->makeList( $out )->gutter(3);
184 176