Changeset 1940:0fb7e85337bf for plugins/maintenance/index.php
- Timestamp:
- 09/18/13 10:51:42 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/maintenance/index.php
r1925 r1940 23 23 $p_url = 'plugin.php?p=maintenance'; 24 24 $task = null; 25 $expired = array(); 25 26 26 27 $code = empty($_POST['code']) ? null : (integer) $_POST['code']; … … 48 49 } 49 50 if (true === $code) { 51 $maintenance->setLog($task->id()); 50 52 http::redirect($p_url.'&task='.$task->id().'&done=1&tab='.$tab); 51 53 } … … 54 56 $core->error->add($e->getMessage()); 55 57 } 58 } 59 60 // Get expired tasks 61 $user_options = $core->auth->getOptions(); 62 if (!empty($user_options['user_maintenance_expired'])) { 63 $expired = $maintenance->getExpired(); 56 64 } 57 65 … … 144 152 145 153 $res .= 146 '<p>'.form::radio(array('task', $t->id()), $t->id()).' '.154 '<p>'.form::radio(array('task', $t->id()), $t->id()).' '. 147 155 '<label class="classic" for="'.$t->id().'">'. 148 html::escapeHTML($t->task()).'</label></p>'; 156 html::escapeHTML($t->task()).'</label>'; 157 158 if (array_key_exists($t->id(), $expired)) { 159 $res .= 160 ' <span class="clear form-note warn">'.sprintf( 161 __('Last execution of this task was on %s. You should execute it again.'), 162 dt::dt2str(__('%Y-%m-%d %H:%M'), $expired[$t->id()]) 163 ).'</span>'; 164 } 165 166 $res .= '</p>'; 149 167 } 150 168
Note: See TracChangeset
for help on using the changeset viewer.