1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Notice and Warning removals

This commit is contained in:
Cameron 2013-04-15 19:46:35 -07:00
parent 0f6c1704de
commit 792c5eb628
5 changed files with 29 additions and 7 deletions

View File

@ -964,8 +964,16 @@ function update_706_to_800($type='')
require_once(e_HANDLER."db_verify_class.php");
$dbv = new db_verify;
$exclude = array_keys(e107::getPlugin()->updateRequired()); // search xxxxx_setup.php and check for 'upgrade_required()' == true.
if($plugUpgradeReq = e107::getPlugin()->updateRequired())
{
$exclude = array_keys($plugUpgradeReq); // search xxxxx_setup.php and check for 'upgrade_required()' == true.
}
else
{
$exclude = false;
}
$dbv->compareAll($exclude); // core & plugins, but not plugins calling for an update with xxxxx_setup.php
if(count($dbv->errors))

View File

@ -81,7 +81,7 @@ class bb_img extends e_bb_base
parse_str($parm,$imgParms);
foreach($tmp as $p => $v)
// foreach($tmp as $p => $v)
{
// $imgParms[$p]=$v;
}

View File

@ -157,11 +157,15 @@ class db_verify
* Check core tables and installed plugin tables
* @param $exclude - array of plugins to exclude.
*/
function compareAll($exclude = array())
function compareAll($exclude = null)
{
foreach($exclude as $val)
if(is_array($exclude))
{
unset($this->tables[$val]);
foreach($exclude as $val)
{
unset($this->tables[$val]);
}
}
$dtables = array_keys($this->tables);

View File

@ -1356,10 +1356,15 @@ class themeHandler
$core->set('sitetheme_layouts', $layout);
$core->set('sitetheme_deflayout', $deflayout);
$core->set('sitetheme_custompages', $customPages);
$core->set('sitetheme_version', $version);
// $core->set('sitetheme_releaseUrl', $this->themeArray[$name]['releaseUrl']);
$sql->db_Delete("menus", "menu_layout !='' ");
if($contentCheck === true)
{
$sql->db_Delete("menus", "menu_layout !='' ");
}
e107::getCache()->clear_sys();

View File

@ -144,6 +144,11 @@ class e_tohtml_linkwords
function to_html($text,$area = 'olddefault')
{
if(is_string($this->area_opts))
{
$this->area_opts = e107::unserialize($this->area_opts);
}
if (!$this->lw_enabled || !count($this->area_opts) || !array_key_exists($area,$this->area_opts) || !$this->area_opts[$area]) return $text; // No linkwords in disabled areas
// Split up by HTML tags and process the odd bits here