Permalink
Browse files

Added notice about the directory name not being correct

  • Loading branch information...
1 parent 9b5e892 commit 5b0a312a9bc46aacfc5cf8a90872add4ef9d6e21 @UndefinedOffset committed Oct 11, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 _config.php
View
@@ -1,3 +1,6 @@
<?php
-
+$dir=basename(dirname(__FILE__));
+if($dir!='SortableGridField') {
+ user_error('SortableGridField: Directory name must be "SortableGridField" (currently "'.$dir.'")',E_USER_ERROR);
+}
?>

0 comments on commit 5b0a312

Please sign in to comment.