Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR: remove $template var as sapphire/07d2d52 will pick this up aut…

…omatically
  • Loading branch information...
commit 85315257891869ce6fa7ef5a3e14c8fcbc4a3ff6 1 parent dc0168d
Will Rossiter wilr authored
Showing with 8 additions and 13 deletions.
  1. +8 −13 code/forms/SiteTreeURLSegmentField.php
21 code/forms/SiteTreeURLSegmentField.php
View
@@ -1,24 +1,21 @@
<?php
-/**
- * @package cms
- * @subpackage forms
- */
/**
* Used to edit the SiteTree->URLSegment property, and suggest input based on the serverside rules
* defined through {@link SiteTree->generateURLSegment()} and {@link URLSegmentFilter}.
*
* Note: The actual conversion for saving the value takes place in the model layer.
+ *
+ * @package cms
+ * @subpackage forms
*/
+
class SiteTreeURLSegmentField extends TextField {
- protected $template = 'SiteTreeURLSegmentField';
-
- /** @var String */
- protected $helpText;
-
- /** @var String */
- protected $urlPrefix;
+ /**
+ * @var string
+ */
+ protected $helpText, $urlPrefix;
static $allowed_actions = array(
'suggest'
@@ -81,6 +78,4 @@ function getURLPrefix(){
function Type() {
return 'text sitetreeurlsegment';
}
-
-
}
Please sign in to comment.
Something went wrong with that request. Please try again.