From: andi <bin...@li...> - 2001-09-18 13:57:22
|
andi Tue Sep 18 06:57:16 2001 EDT Modified files: /r2/binarycloud/base/core Page.php Log: Page uses Request now (.tmpl) Index: r2/binarycloud/base/core/Page.php diff -u r2/binarycloud/base/core/Page.php:1.19 r2/binarycloud/base/core/Page.php:1.20 --- r2/binarycloud/base/core/Page.php:1.19 Fri Sep 7 12:37:07 2001 +++ r2/binarycloud/base/core/Page.php Tue Sep 18 06:57:16 2001 @@ -1,7 +1,7 @@ <?php // Header {{{ /* - * -File $Id: Page.php,v 1.19 2001/09/07 19:37:07 alex Exp $ + * -File $Id: Page.php,v 1.20 2001/09/18 13:57:16 andi Exp $ * -License LGPL (http://www.gnu.org/copyleft/lesser.html) * -Copyright 2001, The Turing Studio, Inc. * -Authors alex black, en...@tu... @@ -245,8 +245,9 @@ global $gPageDef; $templates =& $gPageDef['templates']; if (isset($templates)) { - global $_tmpl; - $tmpl = isset($templates[$_tmpl]) ? $templates[$_tmpl] : $templates['default']; + global $Request; + $_tmpl = $Request->GetVar('_tmpl','GET'); + $tmpl = isset($templates[$_tmpl]) ? $templates[$_tmpl] : $templates['default']; if (!isset($gPageDef['modules'])) { $this->output = ob_get_contents(); ob_end_clean(); |