All pastes #827464 Raw Edit

Unnamed

public php v1 · immutable
#827464 ·published 2007-12-21 20:16 UTC
rendered paste body
class Article_Comments_controller extends Comments_controller {	/**	 * Constructor function	 */	public function __construct() {		$tmp_config = $this->_settings->get( 'article' );		if ( !$tmp_config['use_comments'] ) {			$this->comments_disabled = true;		}	}			}class Comments_controller extends Controller_base {				//etc		/**	 * @var bool	 */	protected $comments_disabled = false;		public function index_section( $group='' ) {					$this->set_title( $this->get_detail( 'title' ).' Comments' );		if ( $this->_settings->get( 'comments/enable' ) == false || $this->comments_disabled ) {			$this->set_title( $this->get_detail( 'title' ).' - Comments' );			return 'Comments are not enabled';		}		//etc	}		//etc}