]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/password.php
better deletion of old avatars
[quix0rs-gnu-social.git] / actions / password.php
index 3fd94b66ad7b486784d4d3b98e41a91f5857a4e5..c5ab28ee973e8708b656542808f87045bb06ccd2 100644 (file)
@@ -17,7 +17,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-if (!defined('LACONICA')) { exit(1) }
+if (!defined('LACONICA')) { exit(1); }
+
+require_once(INSTALLDIR.'/lib/settingsaction.php');
 
 class PasswordAction extends SettingsAction {
        
@@ -25,7 +27,7 @@ class PasswordAction extends SettingsAction {
                common_show_header(_t('Change password'));
                $this->settings_menu();
                $this->message($msg, $success);
-               common_start_element('form', array('method' => 'POST',
+               common_element_start('form', array('method' => 'POST',
                                                                                   'id' => 'password',
                                                                                   'action' => 
                                                                                   common_local_url('password')));
@@ -40,6 +42,7 @@ class PasswordAction extends SettingsAction {
                                                                          'type' => 'button',
                                                                          'id' => 'cancel'),
                                           _t('Cancel'));
+               common_element_end('form');
        }
        
        function handle_post() {