mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Removed junk from CVS, unnecessary newlines etc
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41462 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0bf12a22d1
commit
aaabe7ee94
@ -1,7 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The most common kind if controller; effectively a controller linked to a {@link DataObject}.
|
* The most common kind if controller; effectively a controller linked to a {@link DataObject}.
|
||||||
*
|
*
|
||||||
@ -41,16 +38,9 @@ class ContentController extends Controller {
|
|||||||
// '&' in a URL is apparently naughty
|
// '&' in a URL is apparently naughty
|
||||||
$action = preg_replace('/&/', '&', $action);
|
$action = preg_replace('/&/', '&', $action);
|
||||||
return $this->URLSegment . "/$action";
|
return $this->URLSegment . "/$action";
|
||||||
}else{
|
} else {
|
||||||
user_error("ContentController::RelativeLink() No URLSegment given on a '$this->class' object. Perhaps you should overload it?", E_USER_WARNING);
|
user_error("ContentController::RelativeLink() No URLSegment given on a '$this->class' object. Perhaps you should overload it?", E_USER_WARNING);
|
||||||
}
|
}
|
||||||
/** TODO : junk from CVS ?? **/
|
|
||||||
//if($action == "index") $action = "";
|
|
||||||
|
|
||||||
// '&' in a URL is apparently naughty
|
|
||||||
// $action = preg_replace('/&/', '&', $action);
|
|
||||||
|
|
||||||
//return $this->URLSegment . "/$action";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------//
|
//----------------------------------------------------------------------------------//
|
||||||
|
Loading…
Reference in New Issue
Block a user