Small tweaks
This commit is contained in:
parent
2bf64a9f14
commit
8e065982c5
@ -306,7 +306,9 @@ class Daux
|
|||||||
throw new \RuntimeException("Class '$class' not found. We cannot use it as a Processor");
|
throw new \RuntimeException("Class '$class' not found. We cannot use it as a Processor");
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO :: check that it implements processor
|
if (!array_key_exists("Todaymade\\Daux\\Processor", class_parents($class))) {
|
||||||
|
throw new \RuntimeException("Class '$class' invalid, should extend '\\Todaymade\\Daux\\Processor'");
|
||||||
|
}
|
||||||
|
|
||||||
return $class;
|
return $class;
|
||||||
}
|
}
|
||||||
|
@ -72,6 +72,10 @@ class Content extends Entry
|
|||||||
|
|
||||||
public function isIndex()
|
public function isIndex()
|
||||||
{
|
{
|
||||||
|
// At some point, it was recommended that
|
||||||
|
// an index page starts with an underscore.
|
||||||
|
// This is not mandatory anymore, both with
|
||||||
|
// and without underscore are supported.
|
||||||
return $this->name == 'index' || $this->name == '_index';
|
return $this->name == 'index' || $this->name == '_index';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user