better code style for ArticleGenerator::getArray
This commit is contained in:
parent
17e4e5570e
commit
e6245524a4
1 changed files with 4 additions and 0 deletions
|
@ -275,6 +275,10 @@ class ArticleGenerator
|
|||
public function getArray($directory, $articlefile)
|
||||
{
|
||||
$article = file_get_contents($directory . $articlefile);
|
||||
$title = "";
|
||||
$date = "";
|
||||
$author = "";
|
||||
$tags = array();
|
||||
|
||||
if (substr($article, 0, 6) == "%TITLE") { // get and remove the title
|
||||
$title = substr($article, 8, strpos($article, "\n") - 8);
|
||||
|
|
Reference in a new issue