Dotclear


Ignore:
Timestamp:
09/20/13 18:10:13 (12 years ago)
Author:
Denis Jean-Chirstian <contact@…>
Branch:
default
Message:

Revamp plugin maintenance, step 4, add user prefs (without translation), wait for boss, addresses #999

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/maintenance/index.php

    r1959 r1969  
    5959 
    6060// Get expired tasks 
    61 $user_options = $core->auth->getOptions(); 
    62 if (!empty($user_options['user_maintenance_expired'])) { 
     61$core->auth->user_prefs->addWorkspace('maintenance'); 
     62if ($core->auth->user_prefs->maintenance->plugin_message) { 
    6363     $expired = $maintenance->getExpired(); 
    6464} 
     
    158158                    if (array_key_exists($t->id(), $expired)) { 
    159159                         $res_task .=  
    160                          ' <span class="clear form-note warn">'.sprintf( 
    161                               __('Last execution of this task was on %s. You should execute it again.'), 
     160                         '<br /> <span class="warn">'.sprintf( 
     161                              __('Last execution of this task was on %s.'), 
    162162                              dt::dt2str(__('%Y-%m-%d %H:%M'), $expired[$t->id()]) 
    163                          ).'</span>'; 
     163                         ).' '. 
     164                         __('You should execute it now.').'</span>'; 
     165                    } 
     166                    elseif ($t->ts()) { 
     167                         $res_task .=  
     168                         '<br /> <span class="warn">'. 
     169                         __('This task has never been executed.').' '. 
     170                         __('You should execute it now.').'</span>'; 
    164171                    } 
    165172 
Note: See TracChangeset for help on using the changeset viewer.

Sites map