aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-06-21 17:53:44 +0200
committerMario Vavti <mario@mariovavti.com>2015-06-21 17:53:44 +0200
commitc1e0987b880c116b392d65a2b40cda2fd53debe0 (patch)
tree68ea773bdf5b2863da3d7cd69a3a76f22f7eb824 /view
parente1caf774806a2af34b0c4786dcb0c9a40d76e517 (diff)
downloadvolse-hubzilla-c1e0987b880c116b392d65a2b40cda2fd53debe0.tar.gz
volse-hubzilla-c1e0987b880c116b392d65a2b40cda2fd53debe0.tar.bz2
volse-hubzilla-c1e0987b880c116b392d65a2b40cda2fd53debe0.zip
do not show default in scheme selection dropdown. default.php and default.css should be symlinks. adjust doco accordingly.
Diffstat (limited to 'view')
-rw-r--r--view/theme/redbasic/php/config.php6
-rw-r--r--view/theme/redbasic/php/style.php1
-rwxr-xr-xview/tpl/photos_upload.tpl2
3 files changed, 6 insertions, 3 deletions
diff --git a/view/theme/redbasic/php/config.php b/view/theme/redbasic/php/config.php
index 8ab31efc0..c0b2b6da9 100644
--- a/view/theme/redbasic/php/config.php
+++ b/view/theme/redbasic/php/config.php
@@ -84,8 +84,10 @@ function redbasic_form(&$a, $arr) {
if($files) {
foreach($files as $file) {
$f = basename($file, ".php");
- $scheme_name = $f;
- $scheme_choices[$f] = $scheme_name;
+ if($f != 'default') {
+ $scheme_name = $f;
+ $scheme_choices[$f] = $scheme_name;
+ }
}
}
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php
index 956c1951c..6e68d38d5 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -70,6 +70,7 @@ if (($schema) && ($schema != '---')) {
// If we haven't got a schema, load the default. We shouldn't touch this - we
// should leave it for admins to define for themselves.
+// default.php and default.css MUST be symlinks to existing schema files.
if (! $schema) {
if(file_exists('view/theme/redbasic/schema/default.php')) {
diff --git a/view/tpl/photos_upload.tpl b/view/tpl/photos_upload.tpl
index 06e3ef612..ee0bbd86b 100755
--- a/view/tpl/photos_upload.tpl
+++ b/view/tpl/photos_upload.tpl
@@ -1,4 +1,4 @@
-<div id="photo-upload-form" class="generic-content-wrapper">
+<div id="photo-upload-form">
<div class="section-content-tools-wrapper">
<form action="photos/{{$nickname}}" enctype="multipart/form-data" method="post" name="photos-upload-form" id="photos-upload-form">
<input type="hidden" id="photos-upload-source" name="source" value="photos" />