Commit 15f1a611 authored by Kjartan's avatar Kjartan

- changing theme patch. Now Drupal will init the $this->path automatically.

parent 4d45f0c7
......@@ -139,7 +139,8 @@ function theme_init() {
if (is_object($themes[$name])) {
include_once($themes[$name]->filename);
$theme_class = "Theme_$name";
@$obj =& new $theme_class($themes[$name]->filename);
@$obj =& new $theme_class();
$obj->path = dirname($themes[$name]->filename);
return $obj;
}
......
......@@ -17,10 +17,6 @@ class Theme_goofy extends BaseTheme {
var $foreground = "#000000";
var $background = "#FFFFFF";
function Theme_goofy($filename) {
$this->path = dirname($filename);
}
function system($field) {
$system["name"] = "Goofy";
$system["author"] = "Steven Wittens";
......
......@@ -18,10 +18,6 @@ class Theme_marvin extends BaseTheme {
var $foreground = "#000000";
var $background = "#EAEAEA";
function Theme_marvin($filename) {
$this->path = dirname($filename);
}
function system($field) {
$system["name"] = "Marvin";
$system["author"] = "Dries";
......
......@@ -16,7 +16,6 @@ class Theme_unconed extends BaseTheme {
var $background = "#FFFFFF";
var $link = "#000000";
var $themename = "unconed";
var $cl80 = "#8f9399";
var $clc0 = "#c8c8d0";
......@@ -37,10 +36,6 @@ class Theme_unconed extends BaseTheme {
var $bgcolor3 = "#D7D7D7";
var $fgcolor3 = "#000000";
function Theme_unconed($filename) {
$this->path = dirname($filename);
}
function system($field) {
$system["name"] = "UnConeD";
$system["author"] = "Steven Wittens";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment