Project

General

Profile

« Previous | Next » 

Revision 1145

Added by aldus over 14 years ago

Add Missing code inside "framework/addon.precheck.php" (ticket #798).
Changes inside "upgrade-script" to avoid "mysql_list_tables is deprecated" warnings (ticket #800).
Add "global $admin" to the install.php of the droplets-module to avoid (variable isn't declared) warnings. (ticket #800).

View differences:

upgrade-script.php
355 355
 */
356 356
echo "<br />Install droplets<br />";
357 357

  
358
$result = mysql_list_tables( DB_NAME );
358
$result = $database->query( "SHOW TABLES FROM ".DB_NAME);
359 359
$all_tables = array();
360
for($i=0; $i < mysql_num_rows($result); $i++) $all_tables[] = mysql_table_name($result, $i);
360
while ($data = $result->fetchRow()) $all_tables[] = $data[0];
361 361

  
362 362
 $file_name = (!in_array ( TABLE_PREFIX."mod_droplets", $all_tables)) ? "install.php" : "upgrade.php";
363 363
 require_once (WB_PATH."/modules/droplets/".$file_name);

Also available in: Unified diff