Skip to content

Commit

Permalink
Backend refactor to accomodate that ALL of a blog's settings are now …
Browse files Browse the repository at this point in the history
…being saved all at once. They are no longer being saved on a screen-by-screen basis.

Signed-off-by: Open Melody Software Group <admin@openmelody.org>
  • Loading branch information
byrnereese authored and Open Melody Software Group committed Nov 17, 2009
1 parent 638729a commit b9beda8
Show file tree
Hide file tree
Showing 8 changed files with 1,036 additions and 667 deletions.
10 changes: 10 additions & 0 deletions lib/MT/Blog.pm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ __PACKAGE__->install_properties({
primary_key => 'id',
});

sub POLICY_MOD_NOONE () { 0 }
sub POLICY_MOD_ANYONE () { 1 }
sub POLICY_MOD_AUTHONLY () { 2 }

use Exporter;
*import = \&Exporter::import;
use vars qw( @EXPORT_OK %EXPORT_TAGS);
@EXPORT_OK = qw( POLICY_MOD_NOONE POLICY_MOD_ANYONE POLICY_MOD_AUTHONLY );
%EXPORT_TAGS = (constants => [ qw(POLICY_MOD_NOONE POLICY_MOD_ANYONE POLICY_MOD_AUTHONLY) ]);

# Image upload defaults.
sub ALIGN () { 'none' }
sub UNITS () { 'pixels' }
Expand Down
Loading

0 comments on commit b9beda8

Please sign in to comment.