No matter what i try I am unable to edit theme.inc. I am getting very frustrated with this.
Here is an example of what i am trying to change:
function theme_list($refresh = 0) {
static $list;
if ($refresh) {
unset($list);
}
if (!$list) {
$list = array();
$result = db_query("SELECT * FROM {system} where type = 'theme' AND status = '1' ORDER BY name");
while ($theme = db_fetch_object($result)) {
if (file_exists($theme->filename)) {
$list[$theme->name] = $theme;
}
}
}
return $list;
}
This Is What I Want To Do:
function theme_list($refresh = 0) {
static $list;
$strHost = explode(".", $_SERVER['HTTP_HOST']);
$base_host = strtolower($strHost[1]);
if ($refresh) {
unset($list);
}
if (!$list) {
$list = array_fill(0,1,$base_host);
}
return $list;
}
I always end up with header errors (and not because of trailing spaces, the spaces stay exactly the same as they are distributed).
What am i doing wrong?
errors may be viewed Here