diff --git a/core/model/VirtualPage.php b/core/model/VirtualPage.php index d7201ec2a..3cbb4f5f9 100755 --- a/core/model/VirtualPage.php +++ b/core/model/VirtualPage.php @@ -226,6 +226,8 @@ class VirtualPage extends Page { $return = $this->copyContentFrom()->$funcName(); } else if($this->copyContentFrom()->hasField($field)) { $return = $this->copyContentFrom()->getField($field); + } else if($field == 'Content') { + return '
' . _t('VirtualPage.NOTFOUND', 'We could not find the content for this virtual page.') . '
'; } } @@ -261,13 +263,6 @@ class VirtualPage extends Page { if (!$haveIt) $haveIt = $this->copyContentFrom()->hasMethod($method); return $haveIt; } - - /** - * If we ever get this far, it means that the VP failed. - */ - function Content() { - return ''._t('VirtualPage.NOTFOUND', 'We could not find the content for this virtual page.').'
'; - } } /**