scoreyness

This commit is contained in:
Shish 2009-01-20 03:17:49 -08:00
parent 776a42d519
commit 6e6a6bdd16
5 changed files with 17 additions and 9 deletions

View File

@ -79,7 +79,7 @@ class GenericPage {
header("Cache-control: no-cache");
usort($this->blocks, "blockcmp");
$layout = new Layout();
$layout->display_page($this);
$layout->display_page($context);
break;
case "data":
if(!is_null($this->filename)) {

View File

@ -42,8 +42,10 @@ Tips
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
class Layout {
public function display_page($page) {
global $config;
public function display_page($context) {
$page = $context->page;
$config = $context->config;
$theme_name = $config->get_string('theme');
$base_href = $config->get_string('base_href');
$data_href = get_base_href();

View File

@ -1,8 +1,10 @@
<?php
class Layout {
function display_page($page) {
global $config;
function display_page($context) {
$page = $context->page;
$config = $context->config;
$theme_name = $config->get_string('theme', 'default');
$data_href = get_base_href();
$contact_link = $config->get_string('contact_link');

View File

@ -1,8 +1,10 @@
<?php
class Layout {
function display_page($page) {
global $config;
function display_page($context) {
$page = $context->page;
$config = $context->config;
$theme_name = $config->get_string('theme', 'default');
$data_href = get_base_href();
$contact_link = $config->get_string('contact_link');

View File

@ -1,8 +1,10 @@
<?php
class Layout {
function display_page($page) {
global $config;
function display_page($context) {
$page = $context->page;
$config = $context->config;
$theme_name = $config->get_string('theme', 'default');
$data_href = get_base_href();
$contact_link = $config->get_string('contact_link');