1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 11:20:25 +02:00

Plugin Builder Bootstrap3 styling fixes. PDO Mysql fix in db verification class.

This commit is contained in:
Cameron
2015-07-29 00:14:17 -07:00
parent 1225105324
commit 2d337c28aa
2 changed files with 7 additions and 6 deletions

View File

@@ -2413,7 +2413,7 @@ class pluginBuilder
for ($i=0; $i < 10; $i++)
{
$text .= "<div>".
$text .= "<div class='form-inline'>".
$frm->text("pluginPrefs[".$i."][index]", '',40,'placeholder='.EPL_ADLAN_129)." ".
$frm->text("pluginPrefs[".$i."][value]", '',40,'placeholder='.EPL_ADLAN_130)." ".
$frm->select("pluginPrefs[".$i."][type]", $options, '', 'class=null', EPL_ADLAN_131).
@@ -2526,7 +2526,7 @@ class pluginBuilder
{
$nm = $key.'-'.$type;
$name = "xml[$nm]";
$size = (count($val)==1) ? 'span7' : 'span2';
$size = (count($val)==1) ? 'span7 col-md-7' : 'span2 col-md-2';
$text .= "<div class='{$size}'>".$this->xmlInput($name, $key."-". $type, vartrue($defaults[$nm]))."</div>";
}
@@ -2747,7 +2747,7 @@ $template = <<<TEMPLATE
<category>{CATEGORY_CATEGORY}</category>
<copyright>{COPYRIGHT_COPYRIGHT}</copyright>
<adminLinks>
<link url="admin_config.php" description="{ADMINLINKS_DESCRIPTION}" icon="images/icon_32.png" iconSmall="images/icon_16.png" primary="true" >LAN_CONFIGURE</link>
<link url="admin_config.php" description="{ADMINLINKS_DESCRIPTION}" icon="" iconSmall="" primary="true" >LAN_CONFIGURE</link>
</adminLinks>
{PLUGINPREFS}
</e107Plugin>

View File

@@ -701,17 +701,18 @@ class db_verify
// continue;
if(mysql_query($query))
if(e107::getDb()->gen($query) !== false)
{
$log->addDebug(LAN_UPDATED.' ['.$query.']');
}
else
{
$log->addWarning(LAN_UPDATED_FAILED.' ['.$query.']');
if(mysql_errno())
$log->addWarning(e107::getDb()->getLastErrorText()); // PDO compatible.
/*if(mysql_errno())
{
$log->addWarning('SQL #'.mysql_errno().': '.mysql_error());
}
}*/
}
}
}