]> git.mjollnir.org Git - s9y.git/commitdiff
strip it
authorgarvinhicking <garvinhicking>
Fri, 7 Jul 2006 15:44:29 +0000 (15:44 +0000)
committergarvinhicking <garvinhicking>
Fri, 7 Jul 2006 15:44:29 +0000 (15:44 +0000)
plugins/serendipity_plugin_templatedropdown/serendipity_plugin_templatedropdown.php

index 21d043c82012928457ad3cb5dfca8d7d9646b386..216854491775d34b3fb128d1677069f5329d2cad 100644 (file)
@@ -19,7 +19,7 @@ class serendipity_plugin_templatedropdown extends serendipity_plugin {
         $propbag->add('description',   PLUGIN_TEMPLATEDROPDOWN_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Evan Nemerson');
-        $propbag->add('version',       '1.0');
+        $propbag->add('version',       '1.1');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -68,7 +68,7 @@ class serendipity_plugin_templatedropdown extends serendipity_plugin {
         echo '<select name="user_template" onchange="document.getElementById(\'theme_chooser\').submit();">';
         foreach (serendipity_fetchTemplates() as $template) {
             $templateInfo = serendipity_fetchTemplateInfo($template);
-            echo '<option value="' . $template . '" ' . (serendipity_get_config_var('template', 'default') == $template ? 'selected="selected"' : '') . '>' . $templateInfo['name'] . '</option>';
+            echo '<option value="' . $template . '" ' . (serendipity_get_config_var('template', 'default') == $template ? 'selected="selected"' : '') . '>' . substr(0, 25, $templateInfo['name']) . '</option>';
         }
         echo '</select>';