mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Display message if source file for data table not available when creating db-based extended field
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/users_extended.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/users_extended.php,v $
|
||||||
| $Revision: 1.11 $
|
| $Revision: 1.12 $
|
||||||
| $Date: 2008-08-29 19:56:26 $
|
| $Date: 2008-08-30 20:22:23 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -963,9 +963,17 @@ function field_activate()
|
|||||||
{
|
{
|
||||||
$ret .= EXTLAN_68." $f ".EXTLAN_69."<br />";
|
$ret .= EXTLAN_68." $f ".EXTLAN_69."<br />";
|
||||||
|
|
||||||
if($tmp[$f]['type']=="db field" && is_readable(e_ADMIN."sql/extended_".$f.".php")){
|
if ($tmp[$f]['type']=="db field")
|
||||||
|
{
|
||||||
|
if (is_readable(e_ADMIN.'sql/extended_'.$f.'.php'))
|
||||||
|
{
|
||||||
$ret .= (process_sql($f)) ? LAN_CREATED." user_extended_{$f}<br />" : LAN_CREATED_FAILED." user_extended_{$f}<br />";
|
$ret .= (process_sql($f)) ? LAN_CREATED." user_extended_{$f}<br />" : LAN_CREATED_FAILED." user_extended_{$f}<br />";
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$ret .= str_replace('--FILE--',e_ADMIN.'sql/extended_'.$f.'.php',EXTLAN_78);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -4,8 +4,8 @@
|
|||||||
| e107 website system - Language File.
|
| e107 website system - Language File.
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_users_extended.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_users_extended.php,v $
|
||||||
| $Revision: 1.6 $
|
| $Revision: 1.7 $
|
||||||
| $Date: 2008-06-29 10:00:30 $
|
| $Date: 2008-08-30 20:22:31 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -90,6 +90,7 @@ define("EXTLAN_74", "is a reserved field name and can not be used.");
|
|||||||
define("EXTLAN_75", "Error adding field to database.");
|
define("EXTLAN_75", "Error adding field to database.");
|
||||||
define("EXTLAN_76", "Invalid characters in field name - only A-Z, a-z, 0-9, '_' allowed.");
|
define("EXTLAN_76", "Invalid characters in field name - only A-Z, a-z, 0-9, '_' allowed.");
|
||||||
define("EXTLAN_77", "Category not deleted - must delete fields in category first: ");
|
define("EXTLAN_77", "Category not deleted - must delete fields in category first: ");
|
||||||
|
define('EXTLAN_78', 'Cannot find file --FILE-- needed to create data table');
|
||||||
|
|
||||||
|
|
||||||
//textbox
|
//textbox
|
||||||
|
Reference in New Issue
Block a user