Compare commits
3 Commits
88d7d2c777
...
346b1a0ca9
Author | SHA1 | Date | |
---|---|---|---|
346b1a0ca9 | |||
6fdd25ae4b | |||
754a23706a |
@ -115,7 +115,7 @@ class PersistentDataManager implements IPersistentDataManager
|
|||||||
|
|
||||||
if (count($modified) > 0) {
|
if (count($modified) > 0) {
|
||||||
if ($model instanceof ModelWithSlug && isset($modified['slug'])) {
|
if ($model instanceof ModelWithSlug && isset($modified['slug'])) {
|
||||||
$modified['slug'] = $this->generateUniqueSlug($model, $modified['slug']);
|
$diff['slug']['new'] = $modified['slug'] = $this->generateUniqueSlug($model, $modified['slug']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$modify->setId($id);
|
$modify->setId($id);
|
||||||
|
@ -97,7 +97,12 @@ class Linker
|
|||||||
|
|
||||||
fwrite($outputFileHandle, $extra[0]);
|
fwrite($outputFileHandle, $extra[0]);
|
||||||
while (($line = fgets($inputFileHandle)) !== false) {
|
while (($line = fgets($inputFileHandle)) !== false) {
|
||||||
fwrite($outputFileHandle, $line);
|
if (preg_match('/^\s*@include\((.*)\)\s*$/', $line, $matches) === 1) {
|
||||||
|
$include = file_get_contents(ROOT . '/views/' . $matches[1] . '.php');
|
||||||
|
fwrite($outputFileHandle, $include);
|
||||||
|
} else {
|
||||||
|
fwrite($outputFileHandle, $line);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fwrite($outputFileHandle, $extra[1]);
|
fwrite($outputFileHandle, $extra[1]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user