scoreyness
This commit is contained in:
parent
776a42d519
commit
6e6a6bdd16
@ -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)) {
|
||||
|
@ -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();
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user