Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of git://github.com/habari/system

  • Loading branch information...
commit 772810ebdb8233028c594715fc45ba25c831aca8 2 parents 6528363 + 3c0606a
@lildude lildude authored
Showing with 15 additions and 0 deletions.
  1. +1 −0  classes/post.php
  2. +14 −0 handlers/adminpluginshandler.php
View
1  classes/post.php
@@ -872,6 +872,7 @@ public function get_form( $context )
$settings->append( 'text', 'pubdate', 'null:null', _t( 'Publication Time' ), 'tabcontrol_text' );
$settings->pubdate->value = $this->pubdate->format( 'Y-m-d H:i:s' );
+ $settings->pubdate->helptext = 'YYYY-MM-DD HH:MM:SS';
$settings->append( 'hidden', 'updated', 'null:null' );
$settings->updated->value = $this->updated->int;
View
14 handlers/adminpluginshandler.php
@@ -165,6 +165,8 @@ public function get_plugins()
$this->theme->assign( 'configaction', Controller::get_var( 'configaction' ) );
$this->theme->assign( 'helpaction', Controller::get_var( 'help' ) );
$this->theme->assign( 'configure', Controller::get_var( 'configure' ) );
+ uasort($sort_active_plugins, array( $this, 'compare_names' ) );
+ uasort($sort_inactive_plugins, array( $this, 'compare_names' ) );
$this->theme->active_plugins = $sort_active_plugins;
$this->theme->inactive_plugins = $sort_inactive_plugins;
@@ -228,4 +230,16 @@ public function get_plugin_toggle()
Utils::redirect( URL::get( 'admin', 'page=plugins' ) );
}
+ /*
+ * Compare function for uasort()
+ * @param array $a The first element to compare
+ * @param array $b The second element to compare
+ * @return integer. 0 if the strings are equal, <0 if the first parameter is less than the second,
+ * and >0 if the first parameter is greater than the second
+ */
+ protected function compare_names( $a, $b )
+ {
+ return strcmp( MultiByte::strtolower( $a['info']->name), MultiByte::strtolower( $b['info']->name ) );
+ }
+
}
Please sign in to comment.
Something went wrong with that request. Please try again.