Changeset 12030

Show
Ignore:
Timestamp:
09/06/07 10:59:38 (1 year ago)
Author:
bergie
Message:

Minor toolbar fixes, removing old-school Exorcist "run replication" command since everybody loves replicator nowadays

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/services/toolbars.php

    r11888 r12030  
    387387                array 
    388388                ( 
    389                     MIDCOM_TOOLBAR_URL => "__mfa/replication/object/{$topic->guid}.html", 
     389                    MIDCOM_TOOLBAR_URL => "__mfa/asgard_midcom.helper.replicator/object/{$topic->guid}.html", 
    390390                    MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('replication information', 'midcom.helper.replicator'), 
    391391                    MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/repair.png', 
     
    508508                    MIDCOM_TOOLBAR_ACCESSKEY => 'a', 
    509509                ) 
    510             );         
    511          
    512             // Safety 
    513             if (!isset($GLOBALS['midcom_config']['staging2live_staging'])) 
    514             { 
    515                 $GLOBALS['midcom_config']['staging2live_staging'] = false; 
    516             } 
    517             $toolbar->add_item 
    518             ( 
    519                 array 
    520                 ( 
    521                     MIDCOM_TOOLBAR_URL => "{$_MIDGARD['self']}midcom-exec-midcom/runreplication.php", 
    522                     MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('run replication', 'midcom'), 
    523                     MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_jump-to.png', 
    524                     MIDCOM_TOOLBAR_ENABLED => $GLOBALS['midcom_config']['staging2live_staging'], 
    525                     MIDCOM_TOOLBAR_POST => true, 
    526                     MIDCOM_TOOLBAR_POST_HIDDENARGS => Array 
    527                     ( 
    528                         'return_to' => $_SERVER['REQUEST_URI'], 
    529                     ), 
    530                 ) 
    531510            ); 
    532511             
     
    557536                    array 
    558537                    ( 
    559                         MIDCOM_TOOLBAR_URL => "{$_MIDGARD['self']}__mfa/replication/", 
     538                        MIDCOM_TOOLBAR_URL => "{$_MIDGARD['self']}__mfa/asgard_midcom.helper.replicator/", 
    560539                        MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('manage replication', 'midcom.helper.replicator'), 
    561540                        MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_folder-properties.png', 
     
    658637            array 
    659638            ( 
    660                 MIDCOM_TOOLBAR_URL => "http://www.midgard-project.org/discussion", 
     639                MIDCOM_TOOLBAR_URL => "http://www.midgard-project.org/discussion/user-forum/", 
    661640                MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('User forum', 'midcom'), 
    662641                MIDCOM_TOOLBAR_OPTIONS => array('target' => '_blank'), 
     
    667646            array 
    668647            ( 
    669                 MIDCOM_TOOLBAR_URL => "http://www.midgard-project.org/documentation", 
     648                MIDCOM_TOOLBAR_URL => "http://www.midgard-project.org/documentation/", 
    670649                MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('Online docs', 'midcom'), 
    671650                MIDCOM_TOOLBAR_OPTIONS => array('target' => '_blank'), 
     
    781760                array 
    782761                ( 
    783                     MIDCOM_TOOLBAR_URL => "{$prefix}__mfa/replication/object/{$object->guid}.html", 
     762                    MIDCOM_TOOLBAR_URL => "{$prefix}__mfa/asgard_midcom.helper.replicator/object/{$object->guid}.html", 
    784763                    MIDCOM_TOOLBAR_LABEL => $_MIDCOM->i18n->get_string('replication information', 'midcom.helper.replicator'), 
    785764                    MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/repair.png',