Project

General

Profile

« Previous | Next » 

Revision 1685

Added by darkviper over 12 years ago

last fixes for use of page_icon s.o.

View differences:

settings.php
164 164
		$oIterator = new DirectoryIterator(WB_PATH.$sIconDir);
165 165
		foreach ($oIterator as $fileinfo) {
166 166
			if(preg_match('/'.$sAllowedImageTypes.'$/i', $fileinfo->getFilename())) {
167
				$sItem = str_replace(WB_PATH, '', str_replace('\\', '/', $fileinfo->getPathname()));
167
				$sItem = str_replace(str_replace('\\', '/', WB_PATH), '',
168
						             str_replace('\\', '/', $fileinfo->getPathname()));
168 169
//				$sItem = WB_REL.$sItem;
169 170
				$aPageIcons[] = array('VALUE'=>$sItem, 'NAME'=>$fileinfo->getFilename());
170 171
			}

Also available in: Unified diff