mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-04 21:28:06 +02:00
PSR-2 reformatting PHPDoc corrections
With minor corrections. Signed-off-by: Marcus Bointon <marcus@synchromedia.co.uk> Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
committed by
Edward Z. Yang
parent
19eee14899
commit
fac747bdbd
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
function phorum_htmlpurifier_show_form() {
|
||||
function phorum_htmlpurifier_show_form()
|
||||
{
|
||||
if (phorum_htmlpurifier_config_file_exists()) {
|
||||
phorum_htmlpurifier_show_config_info();
|
||||
return;
|
||||
@@ -61,7 +62,8 @@ function phorum_htmlpurifier_show_form() {
|
||||
$frm->show();
|
||||
}
|
||||
|
||||
function phorum_htmlpurifier_show_config_info() {
|
||||
function phorum_htmlpurifier_show_config_info()
|
||||
{
|
||||
global $PHORUM;
|
||||
|
||||
// update mod_htmlpurifier for housekeeping
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
function phorum_htmlpurifier_show_migrate_sigs_form() {
|
||||
|
||||
function phorum_htmlpurifier_show_migrate_sigs_form()
|
||||
{
|
||||
$frm = new PhorumInputForm ('', "post", "Migrate");
|
||||
$frm->hidden("module", "modsettings");
|
||||
$frm->hidden("mod", "htmlpurifier");
|
||||
|
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
function phorum_htmlpurifier_migrate_sigs_check() {
|
||||
function phorum_htmlpurifier_migrate_sigs_check()
|
||||
{
|
||||
global $PHORUM;
|
||||
$offset = 0;
|
||||
if (!empty($_POST['migrate-sigs'])) {
|
||||
@@ -17,7 +18,8 @@ function phorum_htmlpurifier_migrate_sigs_check() {
|
||||
return $offset;
|
||||
}
|
||||
|
||||
function phorum_htmlpurifier_migrate_sigs($offset) {
|
||||
function phorum_htmlpurifier_migrate_sigs($offset)
|
||||
{
|
||||
global $PHORUM;
|
||||
|
||||
if(!$offset) return; // bail out quick if $offset == 0
|
||||
|
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
function phorum_htmlpurifier_save_settings() {
|
||||
function phorum_htmlpurifier_save_settings()
|
||||
{
|
||||
global $PHORUM;
|
||||
if (phorum_htmlpurifier_config_file_exists()) {
|
||||
echo "Cannot update settings, <code>mods/htmlpurifier/config.php</code> already exists. To change
|
||||
@@ -19,7 +20,8 @@ function phorum_htmlpurifier_save_settings() {
|
||||
}
|
||||
}
|
||||
|
||||
function phorum_htmlpurifier_commit_settings() {
|
||||
function phorum_htmlpurifier_commit_settings()
|
||||
{
|
||||
global $PHORUM;
|
||||
return phorum_db_update_settings(array("mod_htmlpurifier"=>$PHORUM["mod_htmlpurifier"]));
|
||||
}
|
||||
|
Reference in New Issue
Block a user