Unify code for showing form success message
authorMatthias Schmidt <gravatronics@live.com>
Sun, 7 Aug 2016 11:55:04 +0000 (13:55 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 7 Aug 2016 11:55:04 +0000 (13:55 +0200)
35 files changed:
wcfsetup/install/files/lib/acp/form/ApplicationEditForm.class.php
wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php
wcfsetup/install/files/lib/acp/form/ArticleEditForm.class.php
wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php
wcfsetup/install/files/lib/acp/form/BBCodeEditForm.class.php
wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderAddForm.class.php
wcfsetup/install/files/lib/acp/form/BBCodeMediaProviderEditForm.class.php
wcfsetup/install/files/lib/acp/form/BoxAddForm.class.php
wcfsetup/install/files/lib/acp/form/BoxEditForm.class.php
wcfsetup/install/files/lib/acp/form/CronjobAddForm.class.php
wcfsetup/install/files/lib/acp/form/CronjobEditForm.class.php
wcfsetup/install/files/lib/acp/form/LabelAddForm.class.php
wcfsetup/install/files/lib/acp/form/LabelEditForm.class.php
wcfsetup/install/files/lib/acp/form/LabelGroupAddForm.class.php
wcfsetup/install/files/lib/acp/form/LabelGroupEditForm.class.php
wcfsetup/install/files/lib/acp/form/MenuAddForm.class.php
wcfsetup/install/files/lib/acp/form/MenuEditForm.class.php
wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php
wcfsetup/install/files/lib/acp/form/MenuItemEditForm.class.php
wcfsetup/install/files/lib/acp/form/PageAddForm.class.php
wcfsetup/install/files/lib/acp/form/PageEditForm.class.php
wcfsetup/install/files/lib/acp/form/PaidSubscriptionAddForm.class.php
wcfsetup/install/files/lib/acp/form/PaidSubscriptionEditForm.class.php
wcfsetup/install/files/lib/acp/form/PaidSubscriptionUserAddForm.class.php
wcfsetup/install/files/lib/acp/form/SmileyEditForm.class.php
wcfsetup/install/files/lib/acp/form/TagAddForm.class.php
wcfsetup/install/files/lib/acp/form/TagEditForm.class.php
wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php
wcfsetup/install/files/lib/acp/form/TemplateEditForm.class.php
wcfsetup/install/files/lib/acp/form/TemplateGroupAddForm.class.php
wcfsetup/install/files/lib/acp/form/TemplateGroupEditForm.class.php
wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php
wcfsetup/install/files/lib/acp/form/UserOptionCategoryAddForm.class.php
wcfsetup/install/files/lib/acp/form/UserRankAddForm.class.php
wcfsetup/install/files/lib/acp/form/UserRankEditForm.class.php

index 8754db26690f866697761a6a248022cf1075a968..0c313ddc70f4fdc6527c05cd4f4b3270a497e35a 100644 (file)
@@ -178,10 +178,8 @@ class ApplicationEditForm extends AbstractForm {
                // re-calculate cookie settings
                ApplicationHandler::rebuild();
                
-               // show success.
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index f2f162c4e569cbd0c67c5899cab726ce9bc963fa..b99ee458f577260c256c7e79734ba2dac7ebbaa4 100644 (file)
@@ -351,7 +351,7 @@ class ArticleAddForm extends AbstractForm {
                // call saved event
                $this->saved();
                
-               // show success
+               // show success message
                WCF::getTPL()->assign('success', true);
                
                // reset variables
index 22d053ade029af07916faf8b30d6adf72da9ca25..310d28e4e64cb5508b1eaea9d11ccdbc75000ee9 100644 (file)
@@ -103,7 +103,7 @@ class ArticleEditForm extends ArticleAddForm {
                // call saved event
                $this->saved();
                
-               // show success
+               // show success message
                WCF::getTPL()->assign('success', true);
        }
        
index 33d74bb59d0c40689530df591f9554d506630767..45c4a230bb693541401c7417b78ce7e8d3bb6a2e 100644 (file)
@@ -261,10 +261,8 @@ class BBCodeAddForm extends AbstractForm {
                
                I18nHandler::getInstance()->reset();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 6747446c584dc8df8bdce9698b5668268b8d7fe4..2333a7ec3013d8ce096d122f990cc42916f30fb4 100644 (file)
@@ -123,10 +123,8 @@ class BBCodeEditForm extends BBCodeAddForm {
                
                $this->saved();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 02868dd737b948bada89eb7bc0b5301daf3eb40a..798b8b0a65fd1156144617367ee68003c17e801c 100644 (file)
@@ -102,10 +102,8 @@ class BBCodeMediaProviderAddForm extends AbstractForm {
                // reset values
                $this->title = $this->regex = $this->html = '';
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index f0314dff836722338b92d3664a20bccf3560e1d0..a010e98d159e03815332e939f07ed71f4a4c9469 100644 (file)
@@ -66,10 +66,8 @@ class BBCodeMediaProviderEditForm extends BBCodeMediaProviderAddForm {
                
                $this->saved();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 21e84a6e528b4c062de669fad15be0dd96a1eeb5..60e1a1b24999c9a34d290c8c481f38344ddf58e9 100644 (file)
@@ -496,7 +496,7 @@ class BoxAddForm extends AbstractForm {
                // call saved event
                $this->saved();
                
-               // show success
+               // show success message
                WCF::getTPL()->assign('success', true);
                
                // reset variables
index 8e6dcc7e655256a9836a2fc92a9474e3e58675b7..b526dffa63277ec8b15de532ac4154304b9f69b6 100644 (file)
@@ -127,7 +127,7 @@ class BoxEditForm extends BoxAddForm {
                // call saved event
                $this->saved();
                
-               // show success
+               // show success message
                WCF::getTPL()->assign('success', true);
        }
        
index 530213ee21d92d94db822d41b593fbacb79ab657..c276ad27ac1f8e82222b63eef6cc4f66844f9f24 100755 (executable)
@@ -187,10 +187,8 @@ class CronjobAddForm extends AbstractForm {
                $this->startMinute = $this->startHour = $this->startDom = $this->startMonth = $this->startDow = '*';
                I18nHandler::getInstance()->reset();
                
-               // show success.
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 08fc6de29e5171a3b84793d4749f1d739d1d0770..5570996dd96560cd4855dedc4e8076fd272baef2 100755 (executable)
@@ -79,10 +79,8 @@ class CronjobEditForm extends CronjobAddForm {
                
                $this->saved();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 4a3891dd8f5054e056900caa6b68e65a5c563ac1..681e0e8c3ac2fb713ec50debd4122bca5fda2237 100644 (file)
@@ -190,7 +190,7 @@ class LabelAddForm extends AbstractForm {
                
                I18nHandler::getInstance()->reset();
                
-               // show success
+               // show success message
                WCF::getTPL()->assign('success', true);
        }
        
index 40257c6e3812ceb0fb522423597f416f12abc730..84638c3aa7e11e9ee4c28717b5a440348e8e961c 100644 (file)
@@ -88,10 +88,8 @@ class LabelEditForm extends LabelAddForm {
                // reset values if non-custom value was choosen
                if ($this->cssClassName != 'custom') $this->customCssClassName = '';
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 237ff3606883a772e64795017e3f4fa108aa250c..39bef2b23af3ca374f4bb906f76d5b8544d8c8e8 100644 (file)
@@ -196,10 +196,8 @@ class LabelGroupAddForm extends AbstractForm {
                $this->showOrder = 0;
                $this->setObjectTypeRelations();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
                
                I18nHandler::getInstance()->reset();
        }
index 69aa01e9c21cc65f50c790f1e9ce6025de534378..9fb1100b749d97baf623e0171045e7a20fd2ff4a 100644 (file)
@@ -89,10 +89,8 @@ class LabelGroupEditForm extends LabelGroupAddForm {
                
                $this->saved();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 772ce2ce4fd045934284373cf02938f87d50ec0c..0059cd05d0f83685d1be2beac535c3a4d80c24f4 100644 (file)
@@ -186,10 +186,8 @@ class MenuAddForm extends AbstractForm {
                // reset values
                $this->title = '';
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
                
                I18nHandler::getInstance()->reset();
        }
index 7d9effbc34f8e7612dc78be048c20c8ba93ea715..7b88d133de1b0768eaa23049bbe84a5d42836723 100644 (file)
@@ -91,11 +91,9 @@ class MenuEditForm extends MenuAddForm {
                }
                
                $this->saved();
-       
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 3cc0b313653d523c2fe36ab9c841a14805f80eb3..456e6bb3249954c85866f9c4046e786cf9cd3c88 100644 (file)
@@ -262,7 +262,7 @@ class MenuItemAddForm extends AbstractForm {
                // call saved event
                $this->saved();
                
-               // show success
+               // show success message
                WCF::getTPL()->assign('success', true);
                
                // reset variables
index 41803de3ecbcd9acaf23534f85464e196dc1f05d..3ee433fdbe8f985bba45f9fe9c719cfd4067e209 100644 (file)
@@ -99,10 +99,8 @@ class MenuItemEditForm extends MenuItemAddForm {
                $this->objectAction->executeAction();
                $this->saved();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index de2148ab01cf9d710a91e8ecb06b7e87522bf438..c15faa9129e10b517871d110a98caea062e811e1 100644 (file)
@@ -464,7 +464,7 @@ class PageAddForm extends AbstractForm {
                // call saved event
                $this->saved();
                
-               // show success
+               // show success message
                WCF::getTPL()->assign('success', true);
                
                // reset variables
index 17deca08b3c7a7f99c419bbf991061e145513175..04bca23b310a4408960d240e04621ff91c43ee00 100644 (file)
@@ -205,7 +205,7 @@ class PageEditForm extends PageAddForm {
                // call saved event
                $this->saved();
                
-               // show success
+               // show success message
                WCF::getTPL()->assign('success', true);
        }
        
index d775e2ade477e4b6ef239e41d6b3c1ae3e3eaf9f..1b084cf8092283d8df78094baa22c4ead6445a23 100644 (file)
@@ -282,10 +282,8 @@ class PaidSubscriptionAddForm extends AbstractForm {
                $this->groupIDs = [];
                I18nHandler::getInstance()->reset();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 1d6e3e3653d90f57c0142985042cf67c5c3c87e1..cba189d1de534a2fb267192be6d60ee7fb76dd37 100644 (file)
@@ -142,10 +142,8 @@ class PaidSubscriptionEditForm extends PaidSubscriptionAddForm {
                $this->objectAction->executeAction();
                $this->saved();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 0befc932d355002b16e2179487a5a6ddc7efe5a9..2462248c3240786e1d41c36bfa47acc849b25723 100644 (file)
@@ -146,10 +146,8 @@ class PaidSubscriptionUserAddForm extends AbstractForm {
                // reset values
                $this->username = $this->endDate = '';
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 9ac7b1d4c304f3152a00fa515fde2edf679f2ddb..e6f81a357dc8e822762ec81fc7205d263ca6e682 100644 (file)
@@ -84,10 +84,8 @@ class SmileyEditForm extends SmileyAddForm {
                
                $this->saved();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index ec0be8408256f5f1f57c59eed9b83646eab9828b..78f065905b5ea8ef26a3444fff8855f5f7c9afa1 100644 (file)
@@ -178,10 +178,8 @@ class TagAddForm extends AbstractForm {
                $this->name = '';
                $this->synonyms = [];
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 4dfc8dd1d03ce36e889588b71872261f0509b4f2..1290d050d88d046c37c6aabc0033a948ca294436 100644 (file)
@@ -97,10 +97,8 @@ class TagEditForm extends TagAddForm {
                
                $this->saved();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 917459611bd05c8119a86c7a15c995ed8c9e9c40..85c02d51fb85b0d4f7756740326b52e20af8dcb0 100644 (file)
@@ -203,10 +203,8 @@ class TemplateAddForm extends AbstractForm {
                $this->tplName = $this->templateSource = '';
                $this->templateGroupID = 0;
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 586116a6a3af5bb60d5019a910cb2761b2c4efc1..2731069b05b13b7938404da0d3092f4720885e1e 100644 (file)
@@ -78,10 +78,8 @@ class TemplateEditForm extends TemplateAddForm {
                $this->objectAction->executeAction();
                $this->saved();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 6eccbe2ce55d1d0372a9bd5ac8de68995ea93988..9a5af945d0fcee8a61b4de721b683161773e49a3 100644 (file)
@@ -139,10 +139,8 @@ class TemplateGroupAddForm extends AbstractForm {
                $this->templateGroupName = $this->templateGroupFolderName = '';
                $this->parentTemplateGroupID = 0;
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 1bbfb1f4a36adca1a1ee5572d6f40dab942b5464..c44197d47e94980bc1a2d5ed540645c32b24e689 100644 (file)
@@ -81,10 +81,8 @@ class TemplateGroupEditForm extends TemplateGroupAddForm {
                $this->objectAction->executeAction();
                $this->saved();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 9c28785cc787b2545a37b9e4d154ded0a8b2d280..044291da7badc2799a7125ef310652621f1ddf8a 100755 (executable)
@@ -181,9 +181,7 @@ class UserGroupAddForm extends AbstractOptionListForm {
                $this->saved();
                
                // show success message
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               WCF::getTPL()->assign('success', true);
                
                // reset values
                $this->groupName = '';
index b431f22deac6750fc10b11c420ff8c35f55b7e3c..040c32da7b8f165abe2374ec50ced969b33a603e 100644 (file)
@@ -100,10 +100,8 @@ class UserOptionCategoryAddForm extends AbstractForm {
                
                I18nHandler::getInstance()->reset();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 379c29197e796904e8cfc332b9b37b15232c1b46..1e124e863cb373106dc4676e239fa42888f1f150 100644 (file)
@@ -210,10 +210,8 @@ class UserRankAddForm extends AbstractForm {
                
                I18nHandler::getInstance()->reset();
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**
index 874ca43c01619272817fe74efd318683ea9c87ae..3ed5f8838649334726f14b6724efc88daa8a8380 100644 (file)
@@ -77,10 +77,8 @@ class UserRankEditForm extends UserRankAddForm {
                // reset values if non-custom value was choosen
                if ($this->cssClassName != 'custom') $this->customCssClassName = '';
                
-               // show success
-               WCF::getTPL()->assign([
-                       'success' => true
-               ]);
+               // show success message
+               WCF::getTPL()->assign('success', true);
        }
        
        /**