Making WordPress.org

Changeset 1079


Ignore:
Timestamp:
12/31/2014 05:20:31 PM (10 years ago)
Author:
nacin
Message:

Slack: Fix some minor issues.

Location:
sites/trunk/svn.wordpress.org
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/svn.wordpress.org/bin/slack-trac-hook.php

    r1078 r1079  
    4646    require INC . '/trac.php';
    4747    require INC . '/config.php';
    48     $args = Dotorg\SlackTracHook\Comments\process_message( $lines );
     48    $args = Dotorg\SlackTracHooks\Comments\process_message( $lines );
    4949    $args['trac']   = $trac;
    5050    $args['ticket'] = $ticket;
    5151    $args['ticket_url']  = $ticket_url;
    5252    $args['comment_url'] = $comment_url;
    53     Dotorg\SlackTracHook\Comments\send( SLACK_SENDING_HOOK, $args );
     53    Dotorg\SlackTracHooks\Comments\send( SLACK_SENDING_HOOK, $args );
    5454}
    5555
    5656function slack_ticket_hook( $trac, $ticket ) {
    5757    $payload = array(
    58         'token' => SLACK_TICKET_HOOK_API_TOKEN,
    59         'trac' => $trac,
     58        'trac'   => $trac,
    6059        'ticket' => $ticket,
    6160    );
  • sites/trunk/svn.wordpress.org/includes/slack-trac-hooks/trac.php

    r1078 r1079  
    7777        $channels = (array) $this->commit_channels;
    7878
    79         if ( isset( $this->firehose_channel ) ) {
     79        if ( ! empty( $this->firehose_channel ) ) {
    8080            $channels[] = $this->firehose_channel;
    8181        }
     
    102102        $channels = (array) $this->ticket_channels;
    103103
    104         if ( isset( $this->firehose_channel ) ) {
     104        if ( ! empty( $this->firehose_channel ) ) {
    105105            $channels[] = $this->firehose_channel;
    106106        }
Note: See TracChangeset for help on using the changeset viewer.