Skip to content

Commit ae41bc2

Browse files
authored
Merge pull request #5 from mrqaidi/master
2 parents 2643c13 + 464c3ff commit ae41bc2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

QM_Collector_WPBP_Debug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class QM_Collector_WPBP_Debug extends QM_Collector {
77
function __construct( $title, $parent ) {
88
$this->title = $title;
99
$this->parent = $parent;
10-
$this->id = strtolower( str_replace(' ', '_', $title ) );
10+
$this->id = strtolower( str_replace(' ', '-', $title ) );
1111
}
1212

1313
public function name() {

QM_Collector_WPBP_Debug_Output.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public function __construct( QM_Collector $collector, $output, $title ) {
55
parent::__construct( $collector );
66
$this->output = $output;
77
$this->title = $title;
8-
$this->id = strtolower( str_replace(' ', '_', $title ) );
8+
$this->id = strtolower( str_replace(' ', '-', $title ) );
99
add_filter( 'qm/output/menus', array( $this, 'admin_menu' ), 101 );
1010
add_filter( 'qm/output/title', array( $this, 'admin_title' ), 101 );
1111
add_filter( 'qm/output/menu_class', array( $this, 'admin_class' ) );

debug.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function load (array $output, QM_Collectors $collectors ) {
4747
include 'QM_Collector_WPBP_Debug_Output.php';
4848
}
4949

50-
$id = strtolower( str_replace( ' ', '_', $this->title ) );
50+
$id = strtolower( str_replace( ' ', '-', $this->title ) );
5151
if ( $collector = QM_Collectors::get( $id ) ) {
5252
$output[ $id ] = new QM_Collector_WPBP_Debug_Output( $collector, $this->output, $this->title );
5353
}

0 commit comments

Comments
 (0)