mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 04:44:48 -04:00
parent
14cdd74585
commit
38f4e34a11
2 changed files with 41 additions and 5 deletions
|
@ -83,14 +83,19 @@ class Contributor{
|
|||
// Sometimes placeholders may have `'` in the name.
|
||||
$this->Name = str_replace('\'', '’', $this->Name);
|
||||
}
|
||||
|
||||
$this->UrlName = Formatter::MakeUrlSafe($this->Name);
|
||||
}
|
||||
else{
|
||||
$error->Add(new Exceptions\ContributorNameRequiredException());
|
||||
}
|
||||
|
||||
if(!isset($this->UrlName)){
|
||||
if(isset($this->UrlName)){
|
||||
$this->UrlName = trim($this->UrlName);
|
||||
|
||||
if($this->UrlName == ''){
|
||||
$error->Add(new Exceptions\ContributorUrlNameRequiredException());
|
||||
}
|
||||
}
|
||||
else{
|
||||
$error->Add(new Exceptions\ContributorUrlNameRequiredException());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue