Skip to content
Permalink
Browse files

PB Latex settings should only appear in books (fixes #910) (#911)

  • Loading branch information...
connerbw authored and greatislander committed Aug 30, 2017
1 parent 2dd267d commit c6a72cd39075e63b685fb4ae5900b0071c47b965
Showing with 3 additions and 1 deletion.
  1. +3 −1 symbionts/pressbooks-latex/pb-latex-admin.php
@@ -18,7 +18,9 @@ function init() {
// since we're activating at the network level, this needs to be called in the constructor
$this->addOptions();
add_action( 'admin_menu', array( &$this, 'adminMenu' ) );
if ( \Pressbooks\Book::isBook() ) {
add_action( 'admin_menu', [ &$this, 'adminMenu' ] );
}
}
function adminMenu() {

0 comments on commit c6a72cd

Please sign in to comment.
You can’t perform that action at this time.