Added notice about the directory name not being correct

This commit is contained in:
UndefinedOffset 2012-10-11 15:07:16 -03:00
parent 9b5e892ee4
commit 5b0a312a9b

View File

@ -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);
}
?>