Changeset 2254 for branches

Show
Ignore:
Timestamp:
11/26/10 15:53:58 (18 months ago)
Author:
petsagouris
Message:

[Branch 1.5] Removing the Update stuff from AdminPages.php

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/libs/AdminPages.php

    r2239 r2254  
    160160                        } 
    161161                 
    162                         // cron hook to include SYS_UPDATES job 
    163                         if ($h->cage->post->keyExists('SYS_UPDATES') == 'true' ) { 
    164                                 $timestamp = time(); 
    165                                 $recurrence = "daily"; 
    166                                 $hook = "SystemInfo:hotaru_feedback"; 
    167                                 $cron_data = array('timestamp'=>$timestamp, 'recurrence'=>$recurrence, 'hook'=>$hook); 
    168                                 $h->pluginHook('cron_update_job', 'cron', $cron_data); 
     162                        $hook = "SystemInfo:hotaru_feedback"; 
     163                        $cron_data = array('hook'=>$hook); 
     164                        $h->pluginHook('cron_delete_job', 'cron', $cron_data); 
    169165 
    170                                 $hook = "SystemInfo:hotaru_version"; 
    171                                 $cron_data = array('timestamp'=>$timestamp, 'recurrence'=>$recurrence, 'hook'=>$hook); 
    172                                 $h->pluginHook('cron_update_job', 'cron', $cron_data); 
    173  
    174                                 $hook = "SystemInfo:plugin_version_getAll"; 
    175                                 $cron_data = array('timestamp'=>$timestamp, 'recurrence'=>$recurrence, 'hook'=>$hook); 
    176                                 $h->pluginHook('cron_update_job', 'cron', $cron_data); 
    177                         } 
    178                         else { 
    179                                 $hook = "SystemInfo:hotaru_feedback"; 
    180                                 $cron_data = array('hook'=>$hook); 
    181                                 $h->pluginHook('cron_delete_job', 'cron', $cron_data); 
    182  
    183                                 $hook = "SystemInfo:hotaru_version"; 
    184                                 $cron_data = array('hook'=>$hook); 
    185                                 $h->pluginHook('cron_delete_job', 'cron', $cron_data); 
    186  
    187                                 $hook = "SystemInfo:plugin_version_getAll"; 
    188                                 $cron_data = array('hook'=>$hook); 
    189                                 $h->pluginHook('cron_delete_job', 'cron', $cron_data); 
    190                         } 
     166                        $hook = "SystemInfo:hotaru_version"; 
     167                        $cron_data = array('hook'=>$hook); 
     168                        $h->pluginHook('cron_delete_job', 'cron', $cron_data); 
    191169                 
    192170                        if ($error == 0) { 
     
    288266                        // View as plain text 
    289267                        header("Content-Type:text/plain"); 
     268                        // skip the opening die() statement and echo debug file 
    290269                        echo file_get_contents(CACHE.'debug_logs/'.$debug_file, NULL, NULL, 14); 
    291270                        exit; 
     
    473452                                $plugman->versionCheck($h); 
    474453                                break; 
     454                        default: 
     455                                // nothing to do here... 
     456                                break; 
    475457                } 
    476458