PluginProbe
ShiftController Employee Shift Scheduling / 4.9.95
ShiftController Employee Shift Scheduling v4.9.95
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/api/html/view.html.php +3 -11 trunk4.9.95 View file →
@@ -96,19 +96,11 @@
96 96 $cfields = array();
97 97 ?>
98 98 <?php if( class_exists('SH4_CFields_Model') or class_exists('SH4_CFields2_Model') ) : ?>
99 99 <?php
100 -$cfields = array();
101 -$f = null;
102 -if (class_exists('ShiftController4Legacy_Pro')) {
103 - $f = ShiftController4Legacy_Pro::$instance->root();
104 -} elseif (class_exists('ShiftController4')) {
105 - $f = ShiftController4::$instance->root();
106 -}
107 -if (null !== $f) {
108 - $cfieldsQuery = $f->make('SH4_CFields_Query');
109 - $cfields = $cfieldsQuery->read();
110 -}
100 +$f = ShiftController4::$instance->root();
101 +$cfieldsQuery = $f->make('SH4_CFields_Query');
102 +$cfields = $cfieldsQuery->read();
111 103 ?>
112 104 <?php if( $cfields ) : ?>
113 105 <p>
114 106 <strong>__Optional Arguments__</strong>