mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 08:17:12 +02:00
Fix issue processwire/processwire-issues#1043
This commit is contained in:
@@ -293,7 +293,7 @@ class Config extends WireData {
|
||||
if(substr($url, -1) !== '/' && strpos($url, '?') === false && strpos($url, '#') === false) $url .= '/';
|
||||
}
|
||||
|
||||
if(!empty($path)) $this->paths->set($for, $dir);
|
||||
if(!empty($dir)) $this->paths->set($for, $dir);
|
||||
if(!empty($url)) $this->urls->set($for, $url);
|
||||
|
||||
return $this;
|
||||
|
@@ -69,8 +69,11 @@ class ProcessTemplate extends Process {
|
||||
*/
|
||||
public function init() {
|
||||
|
||||
$process = $this->wire('process');
|
||||
if("$process" === "$this") {
|
||||
$this->moduleInfo = self::getModuleInfo();
|
||||
$this->headline($this->moduleInfo['title']);
|
||||
}
|
||||
|
||||
if(isset($_POST['id'])) {
|
||||
$this->id = (int) $_POST['id'];
|
||||
|
Reference in New Issue
Block a user