"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mod/access/class/Shortcut.php" between
canopy-3.0.4.tar.gz and canopy-3.0.5.tar.gz

About: Canopy provides a complete web site content management system (successor of "phpwebsite").

Shortcut.php  (canopy-3.0.4):Shortcut.php  (canopy-3.0.5)
skipping to change at line 183 skipping to change at line 183
$template['ACTION'] = implode(' ', $tags); $template['ACTION'] = implode(' ', $tags);
$template['CHECKBOX'] = sprintf('<input type="checkbox" name="shortcut[] " value="%s" />', $this->id); $template['CHECKBOX'] = sprintf('<input type="checkbox" name="shortcut[] " value="%s" />', $this->id);
return $template; return $template;
} }
public function save() public function save()
{ {
if (empty($this->keyword)) { if (empty($this->keyword)) {
return PHPWS_Error::get(SHORTCUT_MISSING_KEYWORD, 'access', 'Shortcu t::save'); throw new \Exception('Missing shortcut keyword.');
} }
if (empty($this->url)) { if (empty($this->url)) {
return PHPWS_Error::get(SHORTCUT_MISSING_URL, 'access', 'Shortcut::s ave'); throw new \Exception('Missing shortcut url.');
} }
$db = new PHPWS_DB('access_shortcuts'); $db = new PHPWS_DB('access_shortcuts');
return $db->saveObject($this); return $db->saveObject($this);
} }
public function getRewrite($full = FALSE, $linkable = TRUE) public function getRewrite($full = FALSE, $linkable = TRUE)
{ {
if ($full) { if ($full) {
$address[] = \phpws\PHPWS_Core::getHomeHttp(); $address[] = \phpws\PHPWS_Core::getHomeHttp();
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)