1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00
This commit is contained in:
Ryan Cramer
2019-12-06 13:51:49 -05:00
parent 987d23154d
commit 8e91a05fd1
2 changed files with 6 additions and 3 deletions

View File

@@ -293,7 +293,7 @@ class Config extends WireData {
if(substr($url, -1) !== '/' && strpos($url, '?') === false && strpos($url, '#') === false) $url .= '/'; 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); if(!empty($url)) $this->urls->set($for, $url);
return $this; return $this;

View File

@@ -69,8 +69,11 @@ class ProcessTemplate extends Process {
*/ */
public function init() { public function init() {
$this->moduleInfo = self::getModuleInfo(); $process = $this->wire('process');
$this->headline($this->moduleInfo['title']); if("$process" === "$this") {
$this->moduleInfo = self::getModuleInfo();
$this->headline($this->moduleInfo['title']);
}
if(isset($_POST['id'])) { if(isset($_POST['id'])) {
$this->id = (int) $_POST['id']; $this->id = (int) $_POST['id'];