feature 2999; docblocks for history, install and metadata

git-svn-id: http://piwigo.org/svn/trunk@26946 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2014-01-24 12:50:48 +00:00
parent 01324a50ad
commit 1f448f9b1e
3 changed files with 77 additions and 15 deletions
+16 -8
View File
@@ -22,16 +22,19 @@
// +-----------------------------------------------------------------------+
/**
* loads an sql file and executes all queries
*
* @package functions\admin\install
*/
/**
* Loads a SQL file and executes all queries.
* Before executing a query, $replaced is... replaced by $replacing. This is
* useful when the SQL file contains generic words. Drop table queries are
* not executed.
*
* @param string filepath
* @param string replaced
* @param string replacing
* @return void
* @param string $filepath
* @param string $replaced
* @param string $replacing
*/
function execute_sqlfile($filepath, $replaced, $replacing, $dblayer)
{
@@ -70,8 +73,6 @@ function execute_sqlfile($filepath, $replaced, $replacing, $dblayer)
/**
* Automatically activate all core themes in the "themes" directory.
*
* @return void
*/
function activate_core_themes()
{
@@ -86,6 +87,12 @@ function activate_core_themes()
}
}
/**
* Connect to database during installation. Uses $_POST.
*
* @param array &$infos - populated with infos
* @param array &$errors - populated with errors
*/
function install_db_connect(&$infos, &$errors)
{
try
@@ -99,4 +106,5 @@ function install_db_connect(&$infos, &$errors)
$errors[] = l10n($e->getMessage());
}
}
?>