Skip to content

Commit

Permalink
fix resetting of userstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Dec 23, 2011
1 parent fa12578 commit 929d1ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action/templateaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function template_action( ) {/*{{{*/
$this->save_session( 'template', $tpl );
}
if( isset( $_GET['utpl'] ) && $_GET['utpl'] == "" ) {
$tpl = $conf['default_tpl'];
$tpl = "";
$this->save_session( 'template', $tpl );
$switch = false;
}
Expand Down Expand Up @@ -110,7 +110,7 @@ public function tpl_switch( $tpl ) {/*{{{*/
if( $conf['template'] == $tpl ) { return ''; }

// prevent userstyle from beeing overwritten ... one or the other way
if( $this->u['template'] ) { return ''; }
if( $this->get_user( 'template' )) { return ''; }
if( preg_match( '/^[\w-]+$/', $tpl )) {
$this->_switch( $tpl );
}
Expand Down

0 comments on commit 929d1ba

Please sign in to comment.